Check if player is online for EntityDamage events too.

This commit is contained in:
GJ 2012-06-28 10:22:00 -04:00
parent f4dd7ff483
commit 9789143c6d

View File

@ -123,6 +123,11 @@ public class EntityListener implements Listener {
if (lEntity instanceof Player) { if (lEntity instanceof Player) {
/* Check for invincibility */ /* Check for invincibility */
Player player = (Player) entity; Player player = (Player) entity;
if (!player.isOnline()) {
return;
}
PlayerProfile PP = Users.getProfile(player); PlayerProfile PP = Users.getProfile(player);
if (PP.getGodMode()) { if (PP.getGodMode()) {