diff --git a/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java b/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java index 32a2df4c..57d7be4e 100644 --- a/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java +++ b/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java @@ -84,7 +84,7 @@ public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { Vector pt = toVector(defender.getLocation()); if (!plugin.regionManager.getApplicableRegions(pt).allowsPvP()) { - player.sendMessage(ChatColor.DARK_RED + "You are in a no-PvP area."); + ((Player)attacker).sendMessage(ChatColor.DARK_RED + "You are in a no-PvP area."); event.setCancelled(true); return; }