1
mirror of https://github.com/CarmJos/ScriptItems synced 2026-06-05 05:15:33 +08:00

测试指令

This commit is contained in:
2022-03-13 14:19:53 +08:00
parent 092a1127aa
commit 65fa2964b4
2 changed files with 4 additions and 11 deletions
@@ -14,7 +14,7 @@ import org.bukkit.inventory.ItemStack;
public class CMDItemsCommand { public class CMDItemsCommand {
@Command( @Command(
name = "CommandItem", aliases = "cmdItem", name = "commanditem", aliases = "cmdItem",
description = "CommandItem的主要指令。", description = "CommandItem的主要指令。",
usage = "/CommandItem help", usage = "/CommandItem help",
permission = "CommandItem.admin" permission = "CommandItem.admin"
@@ -23,12 +23,12 @@ public class CMDItemsCommand {
help(sender); help(sender);
} }
@Command(name = "CommandItem.help") @Command(name = "commanditem.help")
public void help(Context<CommandSender> sender) { public void help(Context<CommandSender> sender) {
sender.getSender().sendMessage("§a§lCommandItem §f§l指令帮助"); sender.getSender().sendMessage("§a§lCommandItem §f§l指令帮助");
} }
@Command(name = "CommandItem.apply", target = CommandTarget.PLAYER) @Command(name = "commanditem.apply", target = CommandTarget.PLAYER)
@Completer(name = "settings") @Completer(name = "settings")
public void apply(Context<Player> sender, public void apply(Context<Player> sender,
ItemSettings settings) { ItemSettings settings) {
+1 -8
View File
@@ -11,11 +11,4 @@ authors:
softdepend: softdepend:
- PlaceholderAPI - PlaceholderAPI
api-version: 1.13 api-version: 1.13
commands:
"CommandItem":
aliases:
- "CMDItem"
description: "CommandItem的主要指令。"
usage: "/CommandItem help"