Package redempt.redlib.protection
Class ProtectedRegion
java.lang.Object
redempt.redlib.protection.ProtectedRegion
Represents a Region which has been protected using a ProtectionPolicy
-
Constructor Summary
ConstructorDescriptionProtectedRegion
(org.bukkit.plugin.Plugin plugin, Region region, ProtectionPolicy.ProtectionType... types) Creates a ProtectedRegionProtectedRegion
(Region region, ProtectionPolicy.ProtectionType... types) Creates a ProtectedRegion -
Method Summary
Modifier and TypeMethodDescriptionvoid
Disables all protections for this region
-
Constructor Details
-
ProtectedRegion
public ProtectedRegion(org.bukkit.plugin.Plugin plugin, Region region, ProtectionPolicy.ProtectionType... types) Creates a ProtectedRegion- Parameters:
plugin
- The Plugin registering the ProtectedRegionregion
- The Region to protecttypes
- The ProtectionTypes to protect the Region with
-
ProtectedRegion
Creates a ProtectedRegion- Parameters:
region
- The Region to protecttypes
- The ProtectionTypes to protect the Region with
-
-
Method Details
-
getRegion
- Returns:
- The region being protected
-
getPolicy
- Returns:
- The
ProtectionPolicy
protecting the region
-
unprotect
public void unprotect()Disables all protections for this region
-