public interface Command
Modifier and Type | Method and Description |
---|---|
void |
disable()
Called when the command is being removed from the system.
|
Collection<ArgumentSpec> |
getAcceptedArguments()
Returns a collection of arguments that the command is prepared to handle.
|
String |
getDescription()
A short description for the command indicating what it does.
|
String |
getName()
Returns a name for this command.
|
String |
getUsage()
How the user should invoke this command
|
boolean |
isStorageRequired() |
void |
run(CommandContext ctx)
Execute the command
|
static final String NAME
void run(CommandContext ctx) throws CommandException
CommandException
void disable()
String getName()
String getDescription()
String getUsage()
Collection<ArgumentSpec> getAcceptedArguments()
boolean isStorageRequired()
Copyright © 2012. All Rights Reserved.