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);