Tweaks: Build outside claims warning (2).

Less messaging for players who already have land claims.
This commit is contained in:
ryanhamshire 2014-10-13 19:21:48 -07:00
parent ea0efad12c
commit 7fcba46c40

View File

@ -330,7 +330,7 @@ public class BlockEventHandler implements Listener
else if(!this.trashBlocks.contains(block.getType()) && GriefPrevention.instance.claimsEnabledForWorld(block.getWorld()))
{
if(!playerData.warnedAboutBuildingOutsideClaims
&& (playerData.lastClaim == null
&& ((playerData.lastClaim == null && playerData.claims.size() == 0)
|| playerData.lastClaim.isNear(player.getLocation(), 15)))
{
GriefPrevention.sendMessage(player, TextMode.Warn, Messages.BuildingOutsideClaims);