mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Fix NPE resulting from using /mcremove command on a Flatfile DB. Fixes
#509.
This commit is contained in:
parent
ec6a7e79d6
commit
81dae8c43d
@ -73,7 +73,7 @@ public class McremoveCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
database.profileCleanup(playerName);
|
Database.profileCleanup(playerName);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user