From 8b47e5d06f2d0c510aff8d51f4ee4e07c6e62f7b Mon Sep 17 00:00:00 2001 From: Slqmy <90862990+Slqmy@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:23:03 +0100 Subject: [PATCH] Require op to run /give-custom-item --- .../template_paper_plugin/commands/GiveCustomItemCommand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/slqmy/template_paper_plugin/commands/GiveCustomItemCommand.java b/src/main/java/net/slqmy/template_paper_plugin/commands/GiveCustomItemCommand.java index 693cf807..849f36b7 100644 --- a/src/main/java/net/slqmy/template_paper_plugin/commands/GiveCustomItemCommand.java +++ b/src/main/java/net/slqmy/template_paper_plugin/commands/GiveCustomItemCommand.java @@ -3,6 +3,7 @@ import java.util.stream.Stream; import dev.jorel.commandapi.CommandAPICommand; +import dev.jorel.commandapi.CommandPermission; import dev.jorel.commandapi.arguments.Argument; import dev.jorel.commandapi.arguments.CustomArgument; import dev.jorel.commandapi.arguments.CustomArgument.CustomArgumentException; @@ -36,6 +37,7 @@ public CustomItem apply(CustomArgumentInfo info) throws CustomArgumentEx plugin.getCustomItemManager().giveCustomItem(item, info.sender()); }); + withPermission(CommandPermission.OP); withArguments(customItemArgument); register(plugin);