mirror of
https://github.com/kaboomserver/extras.git
synced 2025-04-22 17:33:36 -04:00
feat: update blocked execute commands list
Since these commands are already blocked in commands.yml, they don't need to be blocked again.
This commit is contained in:
parent
763089ddf6
commit
971879d900
1 changed files with 3 additions and 5 deletions
|
@ -21,11 +21,9 @@ public final class ServerCommand implements Listener {
|
|||
private static final Pattern SELECTOR_PATTERN = Pattern.compile("(?>\\s)*@[aepsr](?>\\s)*");
|
||||
private static final Logger LOGGER = JavaPlugin.getPlugin(Main.class).getLogger();
|
||||
|
||||
private static final String[] COMMANDS = {"clone", "datapack", "fill", "forceload",
|
||||
"give", "kick", "locate", "locatebiome", "me", "msg", "reload", "save-all",
|
||||
"say", "spawnpoint", "spreadplayers", "stop", "summon", "teammsg",
|
||||
"teleport", "tell", "tellraw", "tm", "tp", "w", "place", "fillbiome", "ride",
|
||||
"tick", "jfr"};
|
||||
private static final String[] COMMANDS = {"clone", "fill", "give", "kick", "locate", "me",
|
||||
"msg", "save-all", "say", "spawnpoint", "spreadplayers", "summon", "teammsg",
|
||||
"teleport", "tell", "tellraw", "tm", "tp", "w", "fillbiome", "ride"};
|
||||
|
||||
public static boolean checkExecuteCommand(final String cmd) {
|
||||
for (String command : COMMANDS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue