From 9789143c6d51fb2eb71d8b25c6e8ce3fa5cc1eef Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 28 Jun 2012 10:22:00 -0400 Subject: [PATCH] Check if player is online for EntityDamage events too. --- .../java/com/gmail/nossr50/listeners/EntityListener.java | 5 +++++ 1 file changed, 5 insertions(+) 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()) {