Skip to content

Commit

Permalink
Block give in execute (#363)
Browse files Browse the repository at this point in the history
Co-authored-by: Kaboom <[email protected]>
  • Loading branch information
7cc5c4f330d47060 and kaboombot authored Sep 10, 2024
1 parent d882118 commit 8cca595
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public final class ServerCommand implements Listener {
private static final Logger LOGGER = JavaPlugin.getPlugin(Main.class).getLogger();

private static final String[] COMMANDS = { "execute", "clone", "datapack", "fill",
"forceload", "kick", "locate", "locatebiome", "me", "msg", "reload", "save-all",
"say", "spreadplayers", "stop", "summon", "teammsg", "teleport", "tell", "tellraw",
"tm", "tp", "w", "place", "fillbiome", "ride" , "tick", "jfr"};
"forceload", "give", "kick", "locate", "locatebiome", "me", "msg", "reload",
"save-all", "say", "spreadplayers", "stop", "summon", "teammsg", "teleport",
"tell", "tellraw", "tm", "tp", "w", "place", "fillbiome", "ride" , "tick", "jfr"};

public static boolean checkExecuteCommand(final String cmd) {
for (String command : COMMANDS) {
Expand Down

0 comments on commit 8cca595

Please sign in to comment.