Class AwayAction

java.lang.Object
games.stendhal.server.actions.chat.AwayAction
All Implemented Interfaces:
ActionListener

public class AwayAction extends Object implements ActionListener
Process /away commands.
  • Constructor Details

    • AwayAction

      public AwayAction()
  • Method Details

    • register

      public static void register()
      Registers AwayAction with its trigger word "away".
    • onAction

      public void onAction(Player player, RPAction action)
      changes away status depending on existence of MESSAGE in action. If action contains MESSAGE, the away status is set else the away status is unset.
      Specified by:
      onAction in interface ActionListener
      Parameters:
      player - The player.
      action - The action.