Fixed pvp rules applying where they shouldn't.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user