Class ServerConsoleCommands

java.lang.Object
  extended by ServerConsoleCommands

public class ServerConsoleCommands
extends java.lang.Object


Field Summary
Modifier and Type Field and Description
static BaseCommand disableplugin
           
static BaseCommand enableplugin
           
static BaseCommand listplugins
           
static BaseCommand modify
           
static BaseCommand reload
           
static BaseCommand reloadplugin
           
static BaseCommand reservelist
           
static BaseCommand version
           
static BaseCommand whitelist
           
 
Method Summary
Modifier and Type Method and Description
 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
 

Field Detail

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
Method Detail

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)