Class WorldGuardHook
java.lang.Object
dev.esophose.playerparticles.hook.WorldGuardHook
public class WorldGuardHook
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description WorldGuardHook() -
Method Summary
Modifier and Type Method Description static booleanenabled()static voidinitialize()Initializes the WorldGuard hook.static booleanisInAllowedRegion(org.bukkit.Location location)Checks if a location is in a region that allows particles to spawn
-
Constructor Details
-
WorldGuardHook
public WorldGuardHook()
-
-
Method Details
-
initialize
public static void initialize()Initializes the WorldGuard hook. Must be called during onLoad, or else WorldGuard prevents flag registration. -
enabled
public static boolean enabled()- Returns:
- true if WorldGuard is enabled, otherwise false
-
isInAllowedRegion
public static boolean isInAllowedRegion(org.bukkit.Location location)Checks if a location is in a region that allows particles to spawn- Parameters:
location- The location to check- Returns:
- true if the location is in an allowed region, otherwise false
-