mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-24 23:41:58 -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)
|
public boolean isClientCommand(String command)
|
||||||
{
|
{
|
||||||
if (commands.containsKey(command.toLowerCase())) {
|
return commands.containsKey(command.toLowerCase()) || aliases.containsKey(command.toLowerCase());
|
||||||
return true;
|
|
||||||
} else if (aliases.containsKey(command.toLowerCase())) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user