allow bypassing nearby claims with ignore claim
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user