Package co.aikar.commands
Class ForwardingCommand
java.lang.Object
co.aikar.commands.BaseCommand
co.aikar.commands.ForwardingCommand
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(CommandIssuer issuer, co.aikar.commands.CommandRouter.CommandRouteResult result) Returns a reference to the last used CommandOperationContext.boolean
hasPermission
(CommandIssuer sender) boolean
hasPermission
(Object issuer) boolean
requiresPermission
(String permission) tabComplete
(CommandIssuer issuer, RootCommand rootCommand, String[] args, boolean isAsync) Methods inherited from class co.aikar.commands.BaseCommand
canExecute, doHelp, doHelp, getCommandHelp, getContextFlags, getCurrentCommandIssuer, getCurrentCommandManager, getDefaultRegisteredCommand, getExceptionHandler, getExecCommandLabel, getExecSubcommand, getName, getOrigArgs, getSubCommands, help, help, setContextFlags, setExceptionHandler, showCommandHelp, showSyntax, tabComplete, tabComplete
-
Method Details
-
getRegisteredCommands
- Overrides:
getRegisteredCommands
in classBaseCommand
-
getLastCommandOperationContext
Description copied from class:BaseCommand
Returns a reference to the last used CommandOperationContext. This method is ThreadLocal, in that it can only be used on a thread that has executed a command- Overrides:
getLastCommandOperationContext
in classBaseCommand
- Returns:
-
getRequiredPermissions
- Overrides:
getRequiredPermissions
in classBaseCommand
-
hasPermission
- Overrides:
hasPermission
in classBaseCommand
-
requiresPermission
- Overrides:
requiresPermission
in classBaseCommand
-
hasPermission
- Overrides:
hasPermission
in classBaseCommand
-
tabComplete
public List<String> tabComplete(CommandIssuer issuer, RootCommand rootCommand, String[] args, boolean isAsync) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
execute
public void execute(CommandIssuer issuer, co.aikar.commands.CommandRouter.CommandRouteResult result)
-