allow bypassing nearby claims with ignore claim
This commit is contained in:
parent
189f044d90
commit
3b163478ef
|
|
@ -745,6 +745,7 @@ public class Claim
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean canClaimNear(Player player, int howNear) {
|
public boolean canClaimNear(Player player, int howNear) {
|
||||||
|
if (GriefPrevention.instance.dataStore.getPlayerData(player.getUniqueId()).ignoreClaims) return true;
|
||||||
Location location = player.getLocation();
|
Location location = player.getLocation();
|
||||||
Claim claim = new Claim
|
Claim claim = new Claim
|
||||||
(new Location(this.lesserBoundaryCorner.getWorld(), this.lesserBoundaryCorner.getBlockX() - howNear, this.lesserBoundaryCorner.getBlockY(), this.lesserBoundaryCorner.getBlockZ() - howNear),
|
(new Location(this.lesserBoundaryCorner.getWorld(), this.lesserBoundaryCorner.getBlockX() - howNear, this.lesserBoundaryCorner.getBlockY(), this.lesserBoundaryCorner.getBlockZ() - howNear),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user