Interface ActionValidator

All Known Implementing Classes:
ActionAttributesExist, ActionSenderNotGagged, ActionSenderNotInJail, ActionSenderUseChatBucket, ActionTargetNotAway, ActionTargetNotGrumpyTowardsSender, ActionTargetNotIgnoringSender, ActionTargetOnline, ActionValidation, ExtractEntityValidator, ItemMovementInZoneAllowed, SlotVisibleIfEntityContained, ZoneNotChanged

public interface ActionValidator
validates an RPAction
Author:
hendrik
  • Method Summary

    Modifier and Type
    Method
    Description
    validate​(Player player, RPAction action, ActionData data)
    validates an RPAction.
  • Method Details

    • validate

      String validate(Player player, RPAction action, ActionData data)
      validates an RPAction.
      Parameters:
      player - Player
      action - RPAction to validate
      data - data about this action
      Returns:
      null if the action is valid; an error message otherwise