diff --git a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java index deda47113..bbca25578 100644 --- a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java @@ -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()) {