Protected ender crystals.
In land claims, damaging one requires build trust.
This commit is contained in:
parent
110f4e2009
commit
3e260ac21e
|
|
@ -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 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
|
if(subEvent.getEntityType() == EntityType.ITEM_FRAME
|
||||||
|| subEvent.getEntityType() == EntityType.ARMOR_STAND
|
|| 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
|
//allow for disabling villager protections in the config
|
||||||
if(subEvent.getEntityType() == EntityType.VILLAGER && !GriefPrevention.instance.config_claims_protectCreatures) return;
|
if(subEvent.getEntityType() == EntityType.VILLAGER && !GriefPrevention.instance.config_claims_protectCreatures) return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user