From e0592b3f622bf0c20112dc714b7a7ba8fec1cb43 Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 16 Sep 2013 12:12:31 -0400 Subject: [PATCH] Don't try to ever pull the mcMMOPlayer here. Fixes #1466 --- src/main/java/com/gmail/nossr50/util/Misc.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/Misc.java b/src/main/java/com/gmail/nossr50/util/Misc.java index 51d95c36a..072a7f700 100644 --- a/src/main/java/com/gmail/nossr50/util/Misc.java +++ b/src/main/java/com/gmail/nossr50/util/Misc.java @@ -182,12 +182,11 @@ public final class Misc { } public static void profileCleanup(String playerName) { - McMMOPlayer mcMMOPlayer = UserManager.getPlayer(playerName); - Player player = mcMMOPlayer.getPlayer(); - UserManager.remove(playerName); - if (player.isOnline()) { + Player player = mcMMO.p.getServer().getPlayerExact(playerName); + + if (player != null) { UserManager.addUser(player); } }