Class ProtectedRegion

java.lang.Object
redempt.redlib.protection.ProtectedRegion

public class ProtectedRegion extends Object
Represents a Region which has been protected using a ProtectionPolicy
  • Constructor Details

    • ProtectedRegion

      public ProtectedRegion(org.bukkit.plugin.Plugin plugin, Region region, ProtectionPolicy.ProtectionType... types)
      Creates a ProtectedRegion
      Parameters:
      plugin - The Plugin registering the ProtectedRegion
      region - The Region to protect
      types - The ProtectionTypes to protect the Region with
    • ProtectedRegion

      public ProtectedRegion(Region region, ProtectionPolicy.ProtectionType... types)
      Creates a ProtectedRegion
      Parameters:
      region - The Region to protect
      types - The ProtectionTypes to protect the Region with
  • Method Details

    • getRegion

      public Region getRegion()
      Returns:
      The region being protected
    • getPolicy

      public ProtectionPolicy getPolicy()
      Returns:
      The ProtectionPolicy protecting the region
    • unprotect

      public void unprotect()
      Disables all protections for this region