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:
parent
d40e081c3d
commit
cae886fd99
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user