public interface CommandManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(CommandSource source,
String cmdLine)
Attempts to execute a command from the specified
cmdLine. |
void |
register(Command command,
String... aliases)
Registers the specified command with the manager with the specified aliases.
|
void |
unregister(String alias)
Unregisters a command.
|
void register(Command command, String... aliases)
command - the command to registeraliases - the alias to usevoid unregister(String alias)
alias - the command alias to unregisterboolean execute(CommandSource source, String cmdLine)
cmdLine.source - the command's sourcecmdLine - the command to run