wip expmanager/party/mcmmo player rewrites

This commit is contained in:
nossr50
2020-11-16 13:43:47 -08:00
parent 5dc95b1fca
commit 450d09e9e4
10 changed files with 299 additions and 182 deletions

View File

@@ -602,10 +602,12 @@ public final class SQLDatabaseManager extends AbstractDatabaseManager {
@Override
public @Nullable PlayerProfile queryPlayerDataByPlayer(@NotNull Player player) throws ProfileRetrievalException, NullArgumentException {
return loadPlayerProfile(player, player.getName(), player.getUniqueId());
}
@Override
public @Nullable PlayerProfile queryPlayerDataByUUID(@NotNull UUID uuid, @NotNull String playerName) throws ProfileRetrievalException, NullArgumentException {
return loadPlayerProfile(null, playerName, uuid);
}
private @Nullable PlayerProfile loadPlayerProfile(@Nullable Player player, @NotNull String playerName, @Nullable UUID playerUUID) {