Skip to content

Commit

Permalink
Require op to run /give-custom-item
Browse files Browse the repository at this point in the history
  • Loading branch information
EsotericEnderman committed Aug 8, 2024
1 parent 02fe712 commit 8b47e5d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -36,6 +37,7 @@ public CustomItem apply(CustomArgumentInfo<String> info) throws CustomArgumentEx
plugin.getCustomItemManager().giveCustomItem(item, info.sender());
});

withPermission(CommandPermission.OP);
withArguments(customItemArgument);

register(plugin);
Expand Down

0 comments on commit 8b47e5d

Please sign in to comment.