Class ActionSenderUseChatBucket

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

public class ActionSenderUseChatBucket extends Object implements ActionValidator
Uses the chat bucket
Author:
hendrik
  • Constructor Details

    • ActionSenderUseChatBucket

      public ActionSenderUseChatBucket(String attribute)
      use chat bucket
      Parameters:
      attribute - name of attribute to use for amount estimation
  • 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