mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-21 11:26:13 +01:00
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:
parent
a8af4f9a04
commit
40417f7fde
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user