From b49e4a7b43444eb9072a195611eb2cb4cc3ceffe Mon Sep 17 00:00:00 2001 From: minenash Date: Sun, 23 Sep 2018 17:44:20 -0400 Subject: [PATCH] Moved Tag's commands from the Java File, to the command file. --- src/com/redstoner/modules/tag/Tag.cmd | 22 ++++++++++++++++++++++ src/com/redstoner/modules/tag/Tag.java | 25 +------------------------ 2 files changed, 23 insertions(+), 24 deletions(-) create mode 100644 src/com/redstoner/modules/tag/Tag.cmd diff --git a/src/com/redstoner/modules/tag/Tag.cmd b/src/com/redstoner/modules/tag/Tag.cmd new file mode 100644 index 0000000..caa95ab --- /dev/null +++ b/src/com/redstoner/modules/tag/Tag.cmd @@ -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; + } +} \ No newline at end of file diff --git a/src/com/redstoner/modules/tag/Tag.java b/src/com/redstoner/modules/tag/Tag.java index 95e4883..04fb145 100644 --- a/src/com/redstoner/modules/tag/Tag.java +++ b/src/com/redstoner/modules/tag/Tag.java @@ -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 }