|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.properties.PList wyvern.kernel.commands.SimpleHandler wyvern.lib.commands.AliasCommand
Lets users set their own persistent server-side aliases.
Field Summary |
Fields inherited from class wyvern.kernel.commands.SimpleHandler |
delay_ |
Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Method Summary | |
boolean |
addAlias(Commandable agent,
java.lang.String arg)
Adds an alias. |
void |
addCommands(java.util.Map commands,
CommandList list)
Adds commands. |
static AliasCommand |
getImpl()
|
boolean |
handleEvent(CommandEvent event)
Turns alias on or off. |
boolean |
removeAlias(Commandable agent,
java.lang.String arg)
Remove an alias from the agent's list. |
void |
showAliases(CommandEvent event)
Shows teh agent's aliases to the agent. |
Methods inherited from class wyvern.kernel.commands.SimpleHandler |
createEvent, execute, knowsCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static AliasCommand getImpl()
public void addCommands(java.util.Map commands, CommandList list)
addCommands
in interface BuiltInCommand
addCommands
in class SimpleHandler
list
- the CommandList we're associating with, if anycommands
- the map to place our commands in.public boolean handleEvent(CommandEvent event)
handleEvent
in class SimpleHandler
event
- a CommandEvent with various fields filled in:
the agent performing the command, the command verb and arguments,
the delay for the command, and success/failure messages.
public boolean addAlias(Commandable agent, java.lang.String arg)
public boolean removeAlias(Commandable agent, java.lang.String arg)
arg
- the alias (first word) and the value (remaining stuff)public void showAliases(CommandEvent event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |