Class CommandCenter

java.lang.Object
games.stendhal.server.actions.CommandCenter

public class CommandCenter extends Object
Handles actions sent by the client. They are dispatched to the specialized action classes in which they are processed.
  • Constructor Details

    • CommandCenter

      public CommandCenter()
  • Method Details

    • register

      public static void register(String action, ActionListener actionClass)
    • register

      public static void register(String action, ActionListener actionClass, int requiredAdminLevel)
    • execute

      public static boolean execute(RPObject caster, RPAction action)
      executes an action from the client
      Parameters:
      caster - player requesting the action
      action - action details
      Returns:
      true, if it was processed