Class ActionAttributesExist
java.lang.Object
games.stendhal.server.actions.validator.ActionAttributesExist
- All Implemented Interfaces:
ActionValidator
checks the the required attribute are part of the action.
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionActionAttributesExist(String... attributes)
creates a new ActionAttributesExist -
Method Summary
Modifier and TypeMethodDescriptionvalidate(Player player, RPAction action, ActionData data)
validates an RPAction.
-
Constructor Details
-
ActionAttributesExist
creates a new ActionAttributesExist- Parameters:
attributes
- list of required attributes
-
-
Method Details
-
validate
validates an RPAction.- Specified by:
validate
in interfaceActionValidator
- Parameters:
player
- Playeraction
- RPAction to validatedata
- data about this action- Returns:
null
if the action is valid; an error message otherwise
-