mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-09 20:58:02 -05:00
CommandParser: Added isValidCommand() to validate client and server commands
This commit is contained in:
parent
2db27f5b87
commit
bee09fcbed
@ -155,6 +155,15 @@ public class CommandParser
|
|||||||
return aliases;
|
return aliases;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is the given command a valid (client or server) command?
|
||||||
|
*
|
||||||
|
* @return true if the command is valid
|
||||||
|
*/
|
||||||
|
public boolean isValidCommand(String command)
|
||||||
|
{
|
||||||
|
return isClientCommand(command) || isServerCommand(command);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is the given command a valid client command?
|
* Is the given command a valid client command?
|
||||||
|
Loading…
Reference in New Issue
Block a user