Class WorldGuardHook

java.lang.Object
valorless.rarespawns.hooks.WorldGuardHook

public class WorldGuardHook extends Object
Integration helper for WorldGuard. Provides detection, logging, and access to the plugin instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canBuild(org.bukkit.entity.Player player)
    Returns whether the player can build at their current location, honoring WorldGuard flags and bypass.
    static org.bukkit.plugin.java.JavaPlugin
    Returns the WorldGuard plugin instance.
    static void
    Attempts to detect WorldGuard and logs whether integration is active.
    static boolean
    Returns true when WorldGuard is present on the server.

    Methods inherited from class java.lang.Object

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

    • WorldGuardHook

      public WorldGuardHook()
  • Method Details

    • Hook

      public static void Hook()
      Attempts to detect WorldGuard and logs whether integration is active.
    • isHooked

      public static boolean isHooked()
      Returns true when WorldGuard is present on the server.
    • getPlugin

      public static org.bukkit.plugin.java.JavaPlugin getPlugin()
      Returns the WorldGuard plugin instance.
    • canBuild

      public static boolean canBuild(org.bukkit.entity.Player player)
      Returns whether the player can build at their current location, honoring WorldGuard flags and bypass.