public abstract static class ChatDirector.CommandHandler extends Object
/who).| Constructor and Description |
|---|
CommandHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAccess(BodyObject user)
Returns true if this user should have access to this chat command.
|
String |
getUsage(String command)
Returns the translatable usage message for the specified command.
|
abstract String |
handleCommand(SpeakService speakSvc,
String command,
String args,
String[] history)
Handles the specified chat command.
|
public String getUsage(String command)
public abstract String handleCommand(SpeakService speakSvc, String command, String args, String[] history)
speakSvc - an optional SpeakService object representing the object to send the chat
message on.command - the slash command that was used to invoke this handler
(e.g. /tell).args - the arguments provided along with the command (e.g. Bob hello)
or null if no arguments were supplied.history - an in/out parameter that allows the command to modify the text that will
be appended to the chat history. If this is set to null, nothing will be appended.ChatCodes.SUCCESS.public boolean checkAccess(BodyObject user)
Copyright © 2015. All rights reserved.