diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java index 46407492..a026934e 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java @@ -30,6 +30,7 @@ import org.bukkit.entity.Creature; import org.bukkit.entity.Creeper; import org.bukkit.entity.EnderDragon; +import org.bukkit.entity.EnderPearl; import org.bukkit.entity.Enderman; import org.bukkit.entity.Entity; import org.bukkit.entity.EntityType; @@ -379,6 +380,7 @@ private void onEntityDamageByProjectile(EntityDamageByEntityEvent event) { // Check Player // if (event.getDamager() instanceof EnderPearl || event.getDamager() instanceof Snowball) return; if (attacker != null && attacker instanceof Player) { + if (event.getDamager() instanceof EnderPearl && attacker == player) return; if (wcfg.useRegions) { Vector pt = toVector(defender.getLocation()); Vector pt2 = toVector(attacker.getLocation());