Skip to content

Commit

Permalink
Block spawnpoint in execute (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhzzzsss authored Sep 23, 2024
1 parent d36503e commit 39feb26
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 39feb26

Please sign in to comment.