mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-30 20:48:19 +01:00
Check if player is online for EntityDamage events too.
This commit is contained in:
parent
f4dd7ff483
commit
9789143c6d
@ -123,6 +123,11 @@ public class EntityListener implements Listener {
|
||||
if (lEntity instanceof Player) {
|
||||
/* Check for invincibility */
|
||||
Player player = (Player) entity;
|
||||
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
|
||||
PlayerProfile PP = Users.getProfile(player);
|
||||
|
||||
if (PP.getGodMode()) {
|
||||
|
Loading…
Reference in New Issue
Block a user