Fixed pvp rules applying where they shouldn't.
This commit is contained in:
parent
68da411528
commit
c781eca5c5
|
|
@ -797,6 +797,9 @@ class EntityEventHandler implements Listener
|
||||||
|
|
||||||
EntityDamageByEntityEvent subEvent = (EntityDamageByEntityEvent) event;
|
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
|
//determine which player is attacking, if any
|
||||||
Player attacker = null;
|
Player attacker = null;
|
||||||
Projectile arrow = null;
|
Projectile arrow = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user