allow bypassing nearby claims with ignore claim

This commit is contained in:
Len 2022-06-19 20:35:00 +02:00
parent 189f044d90
commit 3b163478ef

View File

@ -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),