public interface CommandCallable extends CommandCompleter
| Modifier and Type | Method and Description |
|---|---|
boolean |
call(String arguments,
CommandLocals locals,
String[] parentCommands)
Execute the correct command based on the input.
|
Description |
getDescription()
Get an object describing this command.
|
boolean |
testPermission(CommandLocals locals)
Test whether this command can be executed with the given context.
|
getSuggestionsboolean call(String arguments, CommandLocals locals, String[] parentCommands) throws CommandException
The implementing class must perform the necessary permission checks.
arguments - the argumentslocals - the localsparentCommands - a list of parent commands, with the first most entry being the top-level commandCommandException - thrown on a command errorDescription getDescription()
boolean testPermission(CommandLocals locals)
locals - the localsCopyright © 2010-2014. All Rights Reserved.