Protected ender crystals.

In land claims, damaging one requires build trust.
This commit is contained in:
ryanhamshire 2016-03-20 13:54:56 -07:00
parent 110f4e2009
commit 3e260ac21e

View File

@ -725,7 +725,8 @@ public class EntityEventHandler implements Listener
//if the damaged entity is a claimed item frame or armor stand, the damager needs to be a player with container trust in the claim
if(subEvent.getEntityType() == EntityType.ITEM_FRAME
|| subEvent.getEntityType() == EntityType.ARMOR_STAND
|| subEvent.getEntityType() == EntityType.VILLAGER)
|| subEvent.getEntityType() == EntityType.VILLAGER
|| subEvent.getEntityType() == EntityType.ENDER_CRYSTAL)
{
//allow for disabling villager protections in the config
if(subEvent.getEntityType() == EntityType.VILLAGER && !GriefPrevention.instance.config_claims_protectCreatures) return;