Class ServerConsoleCommands
java.lang.Object
ServerConsoleCommands
public class ServerConsoleCommands
extends java.lang.Object
Method Summary
void |
add(java.lang.String name,
BaseCommand cmd)
Add a command to the server list. |
BaseCommand |
getCommand(java.lang.String command)
|
static boolean |
parseServerConsoleCommand(MessageReceiver caller,
java.lang.String command,
java.lang.String[] args)
Performs a lookup for a command of the given name and executes it if found. |
void |
remove(java.lang.String name)
Remove a command from the server list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reload
public static final BaseCommand reload
modify
public static final BaseCommand modify
whitelist
public static final BaseCommand whitelist
reservelist
public static final BaseCommand reservelist
listplugins
public static final BaseCommand listplugins
reloadplugin
public static final BaseCommand reloadplugin
enableplugin
public static final BaseCommand enableplugin
disableplugin
public static final BaseCommand disableplugin
version
public static final BaseCommand version
add
public void add(java.lang.String name,
BaseCommand cmd)
- Add a command to the server list.
- Parameters:
name
- cmd
-
remove
public void remove(java.lang.String name)
- Remove a command from the server list.
- Parameters:
name
-
parseServerConsoleCommand
public static boolean parseServerConsoleCommand(MessageReceiver caller,
java.lang.String command,
java.lang.String[] args)
- Performs a lookup for a command of the given name and executes it if found. Returns false if command not found.
- Parameters:
command
- player
- parameters
-
- Returns:
getCommand
public BaseCommand getCommand(java.lang.String command)