Package valorless.rarespawns.hooks
Class GriefPreventionHook
java.lang.Object
valorless.rarespawns.hooks.GriefPreventionHook
Integration helper for GriefPrevention.
Provides detection, logging, and access to the plugin instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic me.ryanhamshire.GriefPrevention.ClaimGetClaim(org.bukkit.entity.Player player) Gets the claim at the player's current location.static org.bukkit.plugin.java.JavaPluginReturns the GriefPrevention plugin instance.static booleanChecks if the player has the specified trust level in the claim at their location.static voidHook()Attempts to detect GriefPrevention and logs whether integration is active.static me.ryanhamshire.GriefPrevention.ClaimInClaim(org.bukkit.entity.Player player) Returns the claim at the player's current location, or null if none.static booleanisHooked()Returns true when GriefPrevention is present on the server.
-
Constructor Details
-
GriefPreventionHook
public GriefPreventionHook()
-
-
Method Details
-
Hook
public static void Hook()Attempts to detect GriefPrevention and logs whether integration is active. -
isHooked
public static boolean isHooked()Returns true when GriefPrevention is present on the server. -
getPlugin
public static org.bukkit.plugin.java.JavaPlugin getPlugin()Returns the GriefPrevention plugin instance. -
InClaim
public static me.ryanhamshire.GriefPrevention.Claim InClaim(org.bukkit.entity.Player player) Returns the claim at the player's current location, or null if none. -
HasTrust
Checks if the player has the specified trust level in the claim at their location.- Parameters:
player- the player to testpermission- the ClaimPermission enum name (e.g., BUILD, CONTAINER, ACCESS, MANAGE)- Returns:
- true if trusted; false otherwise
-
GetClaim
public static me.ryanhamshire.GriefPrevention.Claim GetClaim(org.bukkit.entity.Player player) Gets the claim at the player's current location.
-