From 3b163478ef337cd634e2f932a730a4b7c6067eee Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Sun, 19 Jun 2022 20:35:00 +0200 Subject: [PATCH] allow bypassing nearby claims with ignore claim --- src/main/java/me/ryanhamshire/GriefPrevention/Claim.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/ryanhamshire/GriefPrevention/Claim.java b/src/main/java/me/ryanhamshire/GriefPrevention/Claim.java index c8ea504..c4b1fac 100644 --- a/src/main/java/me/ryanhamshire/GriefPrevention/Claim.java +++ b/src/main/java/me/ryanhamshire/GriefPrevention/Claim.java @@ -745,6 +745,7 @@ public class Claim } public boolean canClaimNear(Player player, int howNear) { + if (GriefPrevention.instance.dataStore.getPlayerData(player.getUniqueId()).ignoreClaims) return true; Location location = player.getLocation(); Claim claim = new Claim (new Location(this.lesserBoundaryCorner.getWorld(), this.lesserBoundaryCorner.getBlockX() - howNear, this.lesserBoundaryCorner.getBlockY(), this.lesserBoundaryCorner.getBlockZ() - howNear),