public class ExemptionHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.util.Set<java.lang.String> |
EXEMPT_WG_REGIONS
A set of all exempt WorldGuard region names.
|
| Constructor and Description |
|---|
ExemptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
addWorldGuardExemption(java.lang.String wgRegionName)
Adds a new exemption.
|
(package private) static java.util.Set<java.lang.String> |
getAllExemptions()
Returns a set of all exempt WorldGuard regions.
|
static boolean |
isLocationInExemptWGRegion(org.bukkit.Location loc)
Returns true if the given location is inside an exempt WorldGuard region.
|
private static boolean |
isRegionExempt(java.lang.String wgRegionName)
Checks if a WorldGuard region is exempt.
|
(package private) static void |
removeWorldGuardExemption(java.lang.String wgRegionName)
Removes an existing exemption.
|
static final java.util.Set<java.lang.String> EXEMPT_WG_REGIONS
public static boolean isLocationInExemptWGRegion(org.bukkit.Location loc)
loc - the locationstatic void addWorldGuardExemption(java.lang.String wgRegionName)
wgRegionName - the name of the WorldGuard region to exempt.static void removeWorldGuardExemption(java.lang.String wgRegionName)
wgRegionName - the name of the exempted WorldGuard region.static java.util.Set<java.lang.String> getAllExemptions()
private static boolean isRegionExempt(java.lang.String wgRegionName)
wgRegionName - the name of the region to check.