mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-02 04:56:40 +00:00
removal of aero
This commit is contained in:
@ -30,17 +30,20 @@ public class Command_wildcard extends FreedomCommand
|
||||
return false;
|
||||
}
|
||||
|
||||
Command runCmd = server.getPluginCommand(args[0]);
|
||||
if (runCmd == null)
|
||||
FreedomCommand command = plugin.cl.getByName(args[0]);
|
||||
if (command == null)
|
||||
{
|
||||
msg("Unknown command: " + args[0], ChatColor.RED);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (BLOCKED_COMMANDS.contains(runCmd.getName()))
|
||||
for (String blockedCommand : BLOCKED_COMMANDS)
|
||||
{
|
||||
msg("Did you really think that was going to work?", ChatColor.RED);
|
||||
return true;
|
||||
if (blockedCommand.equals(command.getName()) || command.getAliases().contains(blockedCommand))
|
||||
{
|
||||
msg("Did you really think that was going to work?", ChatColor.RED);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
String baseCommand = StringUtils.join(args, " ");
|
||||
|
Reference in New Issue
Block a user