public interface CommandCallable extends CommandCompleter
| Modifier and Type | Method and Description |
|---|---|
boolean |
call(String arguments,
Namespace namespace,
List<String> parentCommands)
Execute the command.
|
Description |
getDescription()
Get the object describing the command.
|
boolean |
testPermission(Namespace namespace)
Test whether the user is permitted to use the command.
|
getSuggestionsboolean call(String arguments, Namespace namespace, List<String> parentCommands) throws CommandException, InvocationCommandException, AuthorizationException
parentCommands is a list of "parent" commands, including
the current command, where each deeper command is appended to
the list of parent commands.
For example, if the command entered was /world create ocean and
the command in question was the "create" command, then:
arguments would be oceanparentCommands would be world createOn the other hand, if the command was "world," then:
arguments would be create oceanparentCommands would be worldarguments - The argumentsnamespace - Additional values used for executionparentCommands - The list of parent commandsCommandException - If there is an error with the commandInvocationCommandException - If there is an error with executing the commandAuthorizationException - If there is a authorization errorDescription getDescription()
boolean testPermission(Namespace namespace)
namespace - The namespaceCopyright © 2015. All Rights Reserved.