Villager protections.

Interacting (right click) now requires containertrust or higher.
This commit is contained in:
ryanhamshire 2015-01-12 21:55:18 -08:00
parent b39a7d57c7
commit 78c346f789

View File

@ -997,7 +997,7 @@ class PlayerEventHandler implements Listener
}
//if the entity is an animal, apply container rules
if(GriefPrevention.instance.config_claims_preventTheft && entity instanceof Animals)
if(GriefPrevention.instance.config_claims_preventTheft && (entity instanceof Animals || entity.getType() == EntityType.VILLAGER))
{
//if the entity is in a claim
Claim claim = this.dataStore.getClaimAt(entity.getLocation(), false, null);