Class Restriction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected DebugLogger debugLogger
      The DebugLogger which will be used to log whether a check fails or passes, and why.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean check​(org.bukkit.entity.Player player, org.bukkit.Location loc, ActionType actionType)
      Checks whether player has sufficient permission to perform action at loc.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • debugLogger

        protected final DebugLogger debugLogger
        The DebugLogger which will be used to log whether a check fails or passes, and why.
    • Constructor Detail

      • Restriction

        public Restriction​(DebugLogger debugLogger)
        Parameters:
        debugLogger - the debug logger to be used
    • Method Detail

      • check

        public abstract boolean check​(org.bukkit.entity.Player player,
                                      org.bukkit.Location loc,
                                      ActionType actionType)
        Checks whether player has sufficient permission to perform action at loc.
        Parameters:
        player - the player
        loc - the location to check
        actionType - the type of action
        Returns:
        true if the player has permission, false if not