Fixed no-PvP zone messages being sent to the wrong person.

This commit is contained in:
sk89q 2011-01-21 01:37:40 -08:00
parent b489da7fe4
commit 151b5fc561

View File

@ -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;
}