1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-01-09 12:48:00 -05:00

CommandParser: Added isValidCommand() to validate client and server commands

This commit is contained in:
Sebastian Kaspari 2010-04-25 12:19:35 +02:00
parent 2db27f5b87
commit bee09fcbed

View File

@ -155,6 +155,15 @@ public class CommandParser
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?