diff --git a/src/main/java/cc/carm/plugin/commanditem/command/CMDItemsCommand.java b/src/main/java/cc/carm/plugin/commanditem/command/CMDItemsCommand.java index e0cee8e..b4eb75a 100644 --- a/src/main/java/cc/carm/plugin/commanditem/command/CMDItemsCommand.java +++ b/src/main/java/cc/carm/plugin/commanditem/command/CMDItemsCommand.java @@ -14,7 +14,7 @@ import org.bukkit.inventory.ItemStack; public class CMDItemsCommand { @Command( - name = "CommandItem", aliases = "cmdItem", + name = "commanditem", aliases = "cmdItem", description = "CommandItem的主要指令。", usage = "/CommandItem help", permission = "CommandItem.admin" @@ -23,12 +23,12 @@ public class CMDItemsCommand { help(sender); } - @Command(name = "CommandItem.help") + @Command(name = "commanditem.help") public void help(Context sender) { sender.getSender().sendMessage("§a§lCommandItem §f§l指令帮助"); } - @Command(name = "CommandItem.apply", target = CommandTarget.PLAYER) + @Command(name = "commanditem.apply", target = CommandTarget.PLAYER) @Completer(name = "settings") public void apply(Context sender, ItemSettings settings) { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 6489cce..8451939 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -11,11 +11,4 @@ authors: softdepend: - PlaceholderAPI -api-version: 1.13 - -commands: - "CommandItem": - aliases: - - "CMDItem" - description: "CommandItem的主要指令。" - usage: "/CommandItem help" \ No newline at end of file +api-version: 1.13 \ No newline at end of file