Siege: TNT is now placeable and ignitable.

This commit is contained in:
ryanhamshire 2015-08-28 17:55:04 -07:00
parent 5f9d7041f4
commit d6743f9040

View File

@ -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 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(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 //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); GriefPrevention.instance.dataStore.tryExtendSiege(player, this);