Protected ender crystals.
In land claims, damaging one requires build trust.
This commit is contained in:
1 parent
110f4e2009
commit
3e260ac21e
1 file changed
+2
-1
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user