Block give in execute (#363)

Co-authored-by: Kaboom <58372747+kaboombot@users.noreply.github.com>
This commit is contained in:
7cc5c4f330d47060 2024-09-10 19:23:09 -04:00 committed by GitHub
parent d882118c96
commit 8cca595937
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {