1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-21 11:13:00 +01:00

Deprecate methods in ExperienceAPI

This commit is contained in:
TfT_02
2014-07-08 14:46:43 +02:00
parent 7643edfdcd
commit dc21e18cc2
6 changed files with 312 additions and 5 deletions

View File

@@ -356,6 +356,10 @@ public final class SQLDatabaseManager implements DatabaseManager {
return loadPlayerProfile(playerName, "", create, true);
}
public PlayerProfile loadPlayerProfile(UUID uuid, boolean create) {
return loadPlayerProfile("", uuid.toString(), create, true);
}
private PlayerProfile loadPlayerProfile(String playerName, String uuid, boolean create, boolean retry) {
if (!checkConnected()) {
return new PlayerProfile(playerName, false); // return fake profile if not connected