1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-02-24 15:31:56 -05:00

CommandParser: isClientCommand() short syntax

This commit is contained in:
Sebastian Kaspari 2010-04-06 20:44:22 +02:00
parent d40e081c3d
commit cae886fd99

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());
}
/**