GriefPreventionProtectionProvider

Reflection-backed adapter for GriefPrevention. Calls GriefPrevention.instance.dataStore.getClaimAt(location, true, null) and treats a non-null return as "protected".

MethodHandles are resolved once in the constructor and cached, so hot-path queries avoid java.lang.reflect.Method lookup overhead. Uses reflection rather than a typed compileOnly dependency so Magmacore doesn't need to pin a specific GriefPrevention version or add a new maven repo.

Constructors

Functions

Link copied to clipboard
public boolean canBuild(Player player, Location location)
Player-aware build check.
Link copied to clipboard
public boolean isProtected(Location location)
Link copied to clipboard
public String providerName()