Package games.stendhal.server.actions
Class CommandCenter
java.lang.Object
games.stendhal.server.actions.CommandCenter
Handles actions sent by the client. They are dispatched to the
specialized action classes in which they are processed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
executes an action from the clientstatic void
register(String action, ActionListener actionClass)
static void
register(String action, ActionListener actionClass, int requiredAdminLevel)
-
Constructor Details
-
CommandCenter
public CommandCenter()
-
-
Method Details
-
register
-
register
-
execute
executes an action from the client- Parameters:
caster
- player requesting the actionaction
- action details- Returns:
- true, if it was processed
-