Package co.aikar.commands
Class ForwardingCommand
- java.lang.Object
-
- co.aikar.commands.BaseCommand
-
- co.aikar.commands.ForwardingCommand
-
public class ForwardingCommand extends BaseCommand
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(CommandIssuer issuer, co.aikar.commands.CommandRouter.CommandRouteResult result)CommandOperationContextgetLastCommandOperationContext()Returns a reference to the last used CommandOperationContext.List<RegisteredCommand>getRegisteredCommands()Set<String>getRequiredPermissions()booleanhasPermission(CommandIssuer sender)booleanhasPermission(Object issuer)booleanrequiresPermission(String permission)List<String>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 Detail
-
getRegisteredCommands
public List<RegisteredCommand> getRegisteredCommands()
- Overrides:
getRegisteredCommandsin classBaseCommand
-
getLastCommandOperationContext
public CommandOperationContext 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
public Set<String> getRequiredPermissions()
- Overrides:
getRequiredPermissionsin classBaseCommand
-
hasPermission
public boolean hasPermission(Object issuer)
- Overrides:
hasPermissionin classBaseCommand
-
requiresPermission
public boolean requiresPermission(String permission)
- Overrides:
requiresPermissionin classBaseCommand
-
hasPermission
public boolean hasPermission(CommandIssuer sender)
- 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)
-
-