Archived
0

Moved Tag's commands from the Java File, to the command file.

This commit is contained in:
minenash
2018-09-23 17:44:20 -04:00
parent a8772f4cb5
commit b49e4a7b43
2 changed files with 23 additions and 24 deletions

View File

@@ -0,0 +1,22 @@
command tag {
add [string:player] [string:tag...] {
help Tags a player.;
run addtag player tag;
perm utils.tag;
}
del [string:player] [int:id] {
help Removes a tag.;
run deltag player id;
perm utils.tag;
}
check [string:player] {
help Lists all tags of a player.;\
run checktag player;
perm utils.tag;
}
[string:player] [string:tag...] {
help Tags a player.;
run addtag player tag;
perm utils.tag;
}
}

View File

@@ -19,7 +19,7 @@ import com.redstoner.misc.JsonManager;
import com.redstoner.misc.Main;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.String)
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 0, compatible = 4)
public class Tag implements Module
{
@@ -144,27 +144,4 @@ public class Tag implements Module
JsonManager.save(tags, tagLocation);
}
// @noformat
@Override
public String getCommandString()
{
return "command tag {\n" +
" add [string:player] [string:tag...] {\n" +
" help Tags a player.;\n" +
" run addtag player tag;\n" +
" perm utils.tag;\n" +
" }\n" +
" del [string:player] [int:id] {\n" +
" help Removes a tag.;\n" +
" run deltag player id;\n" +
" perm utils.tag;\n" +
" }\n" +
" check [string:player] {\n" +
" help Lists all tags of a player.;\n" +
" run checktag player;\n" +
" perm utils.tag;\n" +
" }\n" +
"}";
}
// @format
}