Fixed PVP damage - now checked not only permission to deal damage to player, but also permission to take damage from player.

Might be related to issue #36
This commit is contained in:
t3hk0d3 2012-06-20 02:29:56 +04:00
parent a8af4f9a04
commit 40417f7fde

View File

@ -47,7 +47,6 @@ public class EntityListener extends ModifyworldListener {
player = (Player) edbe.getDamager();
if (permissionDenied(player, "modifyworld.damage.deal", event.getEntity())) {
cancelDamageEvent(player, event);
return;
}
}
@ -56,7 +55,6 @@ public class EntityListener extends ModifyworldListener {
if (edbe.getDamager() != null) { // Prevent from taking damage by entity
if (_permissionDenied(player, "modifyworld.damage.take", edbe.getDamager())) {
cancelDamageEvent(player, event);
return;
}
}
}