Moved Tag's commands from the Java File, to the command file.
This commit is contained in:
22
src/com/redstoner/modules/tag/Tag.cmd
Normal file
22
src/com/redstoner/modules/tag/Tag.cmd
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user