mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-21 11:26:13 +01:00
Merge pull request #38 from Psithief/fake-player
Attempt to fix fake-players being invincible through superperms.
This commit is contained in:
commit
3cc9b64d3f
@ -52,7 +52,7 @@ public class EntityListener extends ModifyworldListener {
|
||||
|
||||
if (edbe.getEntity() instanceof Player) {
|
||||
player = (Player) edbe.getEntity();
|
||||
if (edbe.getDamager() != null) { // Prevent from taking damage by entity
|
||||
if (edbe.getDamager() != null && player.isOnline()) { // Prevent from taking damage by entity
|
||||
if (_permissionDenied(player, "modifyworld.damage.take", edbe.getDamager())) {
|
||||
cancelDamageEvent(player, event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user