public class ForwardingCommand extends BaseCommand
| Modifier and Type | Method and Description |
|---|---|
void |
execute(CommandIssuer issuer,
String commandLabel,
String[] args) |
CommandOperationContext |
getLastCommandOperationContext()
Returns a reference to the last used CommandOperationContext.
|
List<RegisteredCommand> |
getRegisteredCommands() |
Set<String> |
getRequiredPermissions() |
boolean |
hasPermission(CommandIssuer sender) |
boolean |
hasPermission(Object issuer) |
boolean |
requiresPermission(String permission) |
List<String> |
tabComplete(CommandIssuer issuer,
String alias,
String[] args,
boolean isAsync)
Gets the tab complete suggestions from a given command.
|
canExecute, doHelp, doHelp, getCommandHelp, getContextFlags, getCurrentCommandIssuer, getCurrentCommandManager, getDefaultRegisteredCommand, getExceptionHandler, getExecCommandLabel, getExecSubcommand, getName, getOrigArgs, help, help, setContextFlags, setExceptionHandler, showCommandHelp, showSyntax, tabCompletepublic List<RegisteredCommand> getRegisteredCommands()
getRegisteredCommands in class BaseCommandpublic CommandOperationContext getLastCommandOperationContext()
BaseCommandgetLastCommandOperationContext in class BaseCommandpublic Set<String> getRequiredPermissions()
getRequiredPermissions in class BaseCommandpublic boolean hasPermission(Object issuer)
hasPermission in class BaseCommandpublic boolean requiresPermission(String permission)
requiresPermission in class BaseCommandpublic boolean hasPermission(CommandIssuer sender)
hasPermission in class BaseCommandpublic List<String> tabComplete(CommandIssuer issuer, String alias, String[] args, boolean isAsync) throws IllegalArgumentException
BaseCommandtabComplete in class BaseCommandissuer - The issuer of the command.alias - The command name as entered by the user instead of the ACF registered name.args - All arguments entered by the user.isAsync - Whether this is run off of the main thread.IllegalArgumentExceptionpublic void execute(CommandIssuer issuer, String commandLabel, String[] args)
execute in class BaseCommandCopyright © 2019. All rights reserved.