Package co.aikar.commands
Class ForwardingCommand
java.lang.Object
co.aikar.commands.BaseCommand
co.aikar.commands.ForwardingCommand
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(CommandIssuer issuer, co.aikar.commands.CommandRouter.CommandRouteResult result) Returns a reference to the last used CommandOperationContext.booleanhasPermission(CommandIssuer sender) booleanhasPermission(Object issuer) booleanrequiresPermission(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:
getRegisteredCommandsin classBaseCommand
-
getLastCommandOperationContext
Description copied from class:BaseCommandReturns 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:
getLastCommandOperationContextin classBaseCommand- Returns:
-
getRequiredPermissions
- Overrides:
getRequiredPermissionsin classBaseCommand
-
hasPermission
- Overrides:
hasPermissionin classBaseCommand
-
requiresPermission
- Overrides:
requiresPermissionin classBaseCommand
-
hasPermission
- Overrides:
hasPermissionin 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)
-