Class ActionAttributesExist

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

public class ActionAttributesExist extends Object implements ActionValidator
checks the the required attribute are part of the action.
Author:
hendrik
  • Constructor Details

    • ActionAttributesExist

      public ActionAttributesExist(String... attributes)
      creates a new ActionAttributesExist
      Parameters:
      attributes - list of required attributes
  • Method Details

    • validate

      public String validate(Player player, RPAction action, ActionData data)
      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