Class ZoneNotChanged

java.lang.Object
games.stendhal.server.actions.validator.ZoneNotChanged
All Implemented Interfaces:
ActionValidator

public class ZoneNotChanged extends Object implements ActionValidator
Checks that the player is on the same zone, as indicated by the zone information of the action.
  • Constructor Details

    • ZoneNotChanged

      public ZoneNotChanged()
  • Method Details

    • validate

      public String validate(Player player, RPAction action, ActionData data)
      Description copied from interface: ActionValidator
      validates an RPAction.
      Specified by:
      validate in interface ActionValidator
      Parameters:
      player - Player
      action - RPAction to validate
      data - data about this action
      Returns:
      null if the action is valid; an error message otherwise