Interface BypassPolicy


public interface BypassPolicy
Represents a policy that allows players to bypass certain protection types for certain blocks
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canBypass(org.bukkit.entity.Player player, ProtectionPolicy.ProtectionType type, org.bukkit.block.Block block)
    Checks whether a player can bypass the given protection type for the given block
  • Method Details

    • canBypass

      boolean canBypass(org.bukkit.entity.Player player, ProtectionPolicy.ProtectionType type, org.bukkit.block.Block block)
      Checks whether a player can bypass the given protection type for the given block
      Parameters:
      player - The player attempting an action
      type - The type of action being attempted
      block - The block the action is being performed on
      Returns:
      Whether this player can bypass the protection type for the given block