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 boolean enabled()  
    static void initialize()
    Initializes the WorldGuard hook.
    static boolean isInAllowedRegion​(org.bukkit.Location location)
    Checks if a location is in a region that allows particles to spawn

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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