| Package | Description |
|---|---|
| co.aikar.commands | |
| co.aikar.commands.contexts |
| Modifier and Type | Class and Description |
|---|---|
class |
CommandContexts<R extends CommandExecutionContext<?,? extends CommandIssuer>> |
class |
CommandExecutionContext<T extends CommandExecutionContext,I extends CommandIssuer> |
class |
RegisteredCommand<R extends CommandExecutionContext<? extends CommandExecutionContext,? extends CommandIssuer>> |
| Modifier and Type | Field and Description |
|---|---|
protected I |
CommandExecutionContext.issuer |
protected CommandIssuer |
CommandCompletionContext.issuer |
| Modifier and Type | Method and Description |
|---|---|
CommandIssuer |
CommandOperationContext.getCommandIssuer() |
abstract CommandIssuer |
CommandManager.getCommandIssuer(Object issuer) |
CommandIssuer |
BaseCommand.getCurrentCommandIssuer() |
static CommandIssuer |
CommandManager.getCurrentCommandIssuer() |
CommandIssuer |
CommandCompletionContext.getIssuer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BaseCommand.canExecute(CommandIssuer issuer,
RegisteredCommand<?> cmd) |
abstract <R extends CommandExecutionContext> |
CommandManager.createCommandContext(RegisteredCommand command,
Parameter parameter,
CommandIssuer sender,
List<String> args,
int i,
Map<String,Object> passedArgs) |
CommandOperationContext |
CommandManager.createCommandOperationContext(BaseCommand command,
CommandIssuer issuer,
String commandLabel,
String[] args) |
abstract CommandCompletionContext |
CommandManager.createCompletionContext(RegisteredCommand command,
CommandIssuer sender,
String input,
String config,
String[] args) |
void |
BaseCommand.doHelp(CommandIssuer issuer,
String... args) |
boolean |
ExceptionHandler.execute(BaseCommand command,
RegisteredCommand registeredCommand,
CommandIssuer sender,
List<String> args,
Throwable t)
Called when an exception occurs while executing a command
If an exception handler properly handles an exception, the user will not be noticied by the framework that something went unexceptected. |
void |
BaseCommand.execute(CommandIssuer issuer,
String commandLabel,
String[] args) |
void |
ForwardingCommand.execute(CommandIssuer issuer,
String commandLabel,
String[] args) |
String |
CommandManager.formatMessage(CommandIssuer issuer,
MessageType type,
co.aikar.locales.MessageKeyProvider key,
String... replacements) |
CommandHelp |
CommandManager.generateCommandHelp(CommandIssuer issuer,
co.aikar.commands.RootCommand rootCommand)
Deprecated.
Unstable API
|
CommandHelp |
CommandManager.generateCommandHelp(CommandIssuer issuer,
@NotNull String command)
Deprecated.
Unstable API
|
Locale |
CommandManager.getIssuerLocale(CommandIssuer issuer) |
String |
Locales.getMessage(CommandIssuer issuer,
co.aikar.locales.MessageKeyProvider key) |
protected boolean |
CommandManager.handleUncaughtException(BaseCommand scope,
RegisteredCommand registeredCommand,
CommandIssuer sender,
List<String> args,
Throwable t) |
boolean |
BaseCommand.hasPermission(CommandIssuer issuer) |
boolean |
ForwardingCommand.hasPermission(CommandIssuer sender) |
boolean |
CommandManager.hasPermission(CommandIssuer issuer,
String permission) |
void |
BaseCommand.help(CommandIssuer issuer,
String[] args) |
void |
CommandManager.sendMessage(CommandIssuer issuer,
MessageType type,
co.aikar.locales.MessageKeyProvider key,
String... replacements) |
void |
CommandHelp.showHelp(CommandIssuer issuer) |
void |
CommandHelp.showHelp(CommandIssuer issuer,
co.aikar.locales.MessageKeyProvider format) |
void |
BaseCommand.showSyntax(CommandIssuer issuer,
RegisteredCommand<?> cmd) |
List<String> |
BaseCommand.tabComplete(CommandIssuer issuer,
String commandLabel,
String[] args) |
List<String> |
ForwardingCommand.tabComplete(CommandIssuer issuer,
String alias,
String[] args) |
| Constructor and Description |
|---|
CommandHelp(CommandManager manager,
co.aikar.commands.RootCommand rootCommand,
CommandIssuer issuer) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ContextResolver<T,C extends CommandExecutionContext<?,? extends CommandIssuer>> |
interface |
IssuerAwareContextResolver<T,C extends CommandExecutionContext<?,? extends CommandIssuer>> |
interface |
IssuerOnlyContextResolver<T,C extends CommandExecutionContext<?,? extends CommandIssuer>>
A context resolver that will never consume input, and only resolves using the context of the issuer of the command
|
interface |
OptionalContextResolver<T,C extends CommandExecutionContext<?,? extends CommandIssuer>>
Context Resolver that can accept null input
|
interface |
SenderAwareContextResolver<T,C extends CommandExecutionContext<?,? extends CommandIssuer>>
Deprecated.
Please use
IssuerAwareContextResolver |
Copyright © 2017. All rights reserved.