Class ZoneNotChanged
java.lang.Object
games.stendhal.server.actions.validator.ZoneNotChanged
- All Implemented Interfaces:
ActionValidator
Checks that the player is on the same zone, as indicated by the zone
information of the action.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidate(Player player, RPAction action, ActionData data) validates an RPAction.
-
Constructor Details
-
ZoneNotChanged
public ZoneNotChanged()
-
-
Method Details
-
validate
Description copied from interface:ActionValidatorvalidates an RPAction.- Specified by:
validatein interfaceActionValidator- Parameters:
player- Playeraction- RPAction to validatedata- data about this action- Returns:
nullif the action is valid; an error message otherwise
-