Package valorless.rarespawns.hooks
Class WorldGuardHook
java.lang.Object
valorless.rarespawns.hooks.WorldGuardHook
Integration helper for WorldGuard.
Provides detection, logging, and access to the plugin instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanBuild(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.JavaPluginReturns the WorldGuard plugin instance.static voidHook()Attempts to detect WorldGuard and logs whether integration is active.static booleanisHooked()Returns true when WorldGuard is present on the server.
-
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.
-