|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Command
A command consummes a CommandMessage to execute a specific operation.
Method Summary | |
---|---|
void |
execute(CommandMessage message)
Execute the command. |
int |
getAccessLevel()
Return the required access level to execute this command. |
String[] |
getAliases()
Return the different names available to invoke this command. |
String |
getDescription(Locale locale)
Return a description of this command. |
String |
getUsage(Locale locale)
Return the usage of this command, for example /cmd <param1> <param2> |
boolean |
isHidden()
Tells if the command is hidden from the /help list. |
void |
setAccessLevel(int level)
Set the access level required to execute this command. |
void |
setHidden(boolean hidden)
Change the hidden status of the command on the /help list. |
Method Detail |
---|
String[] getAliases()
String getUsage(Locale locale)
locale
- the locale to be used for the usageString getDescription(Locale locale)
locale
- the locale to be used for the descriptionint getAccessLevel()
void setAccessLevel(int level)
level
- the access levelboolean isHidden()
void setHidden(boolean hidden)
hidden
- void execute(CommandMessage message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |