removal of aero

This commit is contained in:
Super_
2020-06-30 21:51:06 -04:00
parent 9dad7c6d05
commit 9d71a7f4ae
104 changed files with 808 additions and 1010 deletions

View File

@ -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, " ");