CommandParser: isClientCommand() short syntax

This commit is contained in:
Sebastian Kaspari 2010-04-06 20:44:22 +02:00
parent d40e081c3d
commit cae886fd99
1 changed files with 1 additions and 7 deletions

View File

@ -147,13 +147,7 @@ public class CommandParser
*/
public boolean isClientCommand(String command)
{
if (commands.containsKey(command.toLowerCase())) {
return true;
} else if (aliases.containsKey(command.toLowerCase())) {
return true;
} else {
return false;
}
return commands.containsKey(command.toLowerCase()) || aliases.containsKey(command.toLowerCase());
}
/**