Fixed pvp rules applying where they shouldn't.

This commit is contained in:
ryanhamshire 2015-03-18 15:51:18 -07:00
parent 68da411528
commit c781eca5c5

View File

@ -797,6 +797,9 @@ class EntityEventHandler implements Listener
EntityDamageByEntityEvent subEvent = (EntityDamageByEntityEvent) event;
//if not in a pvp rules world, do nothing
if(!GriefPrevention.instance.config_pvp_enabledWorlds.contains(defender.getWorld())) return;
//determine which player is attacking, if any
Player attacker = null;
Projectile arrow = null;