Block spawnpoint in execute (#365)

This commit is contained in:
Harry Zhou 2024-09-23 16:51:25 -05:00 committed by GitHub
parent d36503ed3f
commit 39feb26c93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,8 +25,9 @@ public final class ServerCommand implements Listener {
private static final String[] COMMANDS = { "execute", "clone", "datapack", "fill",
"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"};
"save-all", "say", "spawnpoint", "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) {