com.cliffblaster.game.commands
Class BroadcastCommand
java.lang.Object
com.cliffblaster.game.Command
com.cliffblaster.game.commands.BroadcastCommand
public class BroadcastCommand
- extends Command
Method Summary |
boolean |
execute(java.lang.String[] arguments,
ServerHandler caller)
Executes the command, arguments[0] is the command, args[1] is the first argument
Caller is null if the caller is the console |
java.lang.String |
getHelpDesc()
|
boolean |
hasPermission(java.lang.String[] arguments,
ServerHandler caller)
Called to check whether the caller has permission to execute that command
Caller is null if the caller is the console
Must return true if the caller has permission |
void |
printUsage(java.lang.String[] arguments,
ServerHandler caller)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BroadcastCommand
public BroadcastCommand()
hasPermission
public boolean hasPermission(java.lang.String[] arguments,
ServerHandler caller)
- Description copied from class:
Command
- Called to check whether the caller has permission to execute that command
Caller is null if the caller is the console
Must return true if the caller has permission
- Specified by:
hasPermission
in class Command
execute
public boolean execute(java.lang.String[] arguments,
ServerHandler caller)
- Description copied from class:
Command
- Executes the command, arguments[0] is the command, args[1] is the first argument
Caller is null if the caller is the console
- Specified by:
execute
in class Command
getHelpDesc
public java.lang.String getHelpDesc()
- Specified by:
getHelpDesc
in class Command
printUsage
public void printUsage(java.lang.String[] arguments,
ServerHandler caller)
- Specified by:
printUsage
in class Command