mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Properly block dangerous /wildcard commands
This commit is contained in:
parent
1e47d29adf
commit
2ff66ad54b
@ -39,6 +39,7 @@ public class Command_wildcard extends FreedomCommand
|
|||||||
if (BLOCKED_COMMANDS.contains(runCmd.getName()))
|
if (BLOCKED_COMMANDS.contains(runCmd.getName()))
|
||||||
{
|
{
|
||||||
msg("Did you really think that was going to work?", ChatColor.RED);
|
msg("Did you really think that was going to work?", ChatColor.RED);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
String baseCommand = StringUtils.join(args, " ");
|
String baseCommand = StringUtils.join(args, " ");
|
||||||
|
Loading…
Reference in New Issue
Block a user