From d6743f9040b17bdd3db7bb72e10647504628c078 Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Fri, 28 Aug 2015 17:55:04 -0700 Subject: [PATCH] Siege: TNT is now placeable and ignitable. --- src/me/ryanhamshire/GriefPrevention/Claim.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/me/ryanhamshire/GriefPrevention/Claim.java b/src/me/ryanhamshire/GriefPrevention/Claim.java index 3852c9b..9db2666 100644 --- a/src/me/ryanhamshire/GriefPrevention/Claim.java +++ b/src/me/ryanhamshire/GriefPrevention/Claim.java @@ -329,6 +329,9 @@ public class Claim //if we don't know who's asking, always say no (i've been told some mods can make this happen somehow) if(player == null) return ""; + //if under siege, tnt may be placed and ignited + if(this.siegeData != null && (material == Material.FIRE || material == Material.TNT)) return null; + //when a player tries to build in a claim, if he's under siege, the siege may extend to include the new claim GriefPrevention.instance.dataStore.tryExtendSiege(player, this); @@ -450,7 +453,7 @@ public class Claim //access permission check public String allowAccess(Player player) { - //following a siege where the defender lost, the claim will allow everyone access for a time + //following a siege where the defender lost, the claim will allow everyone access for a time if(this.doorsOpen) return null; //admin claims need adminclaims permission only.