Fix NPE resulting from using /mcremove command on a Flatfile DB. Fixes

#509.
This commit is contained in:
GJ 2013-01-15 10:51:06 -05:00
parent ec6a7e79d6
commit 81dae8c43d
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ public class McremoveCommand implements CommandExecutor {
} }
} }
database.profileCleanup(playerName); Database.profileCleanup(playerName);
return true; return true;
} }

View File

@ -465,7 +465,7 @@ public class Database {
System.out.println("VendorError: " + ex.getErrorCode()); System.out.println("VendorError: " + ex.getErrorCode());
} }
public void profileCleanup(String playerName) { public static void profileCleanup(String playerName) {
McMMOPlayer mcmmoPlayer = Users.getPlayer(playerName); McMMOPlayer mcmmoPlayer = Users.getPlayer(playerName);
if (mcmmoPlayer != null) { if (mcmmoPlayer != null) {