Class ActionTargetNotAway
java.lang.Object
games.stendhal.server.actions.validator.ActionTargetNotAway
- All Implemented Interfaces:
ActionValidator
checks that the target player is not away.
- Author:
- hendrik
-
Constructor Summary
ConstructorsConstructorDescriptionActionTargetNotAway(String targetAttribute, boolean tellAboutPostman) creates a new ActionTargetNotAway -
Method Summary
Modifier and TypeMethodDescriptionvalidate(Player player, RPAction action, ActionData data) validates an RPAction.
-
Constructor Details
-
ActionTargetNotAway
creates a new ActionTargetNotAway- Parameters:
targetAttribute- name of attribute containing the target player nametellAboutPostman- tell the player about postman
-
-
Method Details
-
validate
validates 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
-