cleanup & add cape to player

This commit is contained in:
Lee
2024-04-06 04:28:32 +01:00
parent ea75eb311a
commit 50265b6228
6 changed files with 39 additions and 12 deletions

View File

@ -64,6 +64,9 @@ public class PlayerManagerService {
}
profile = mojangAPIService.getSessionServerProfile(apiProfile.getId().length() == 32 ? UUIDUtils.addUUIDDashes(apiProfile.getId()) : apiProfile.getId());
}
if (profile == null) { // The player cannot be found using their name or UUID
return null;
}
Player player = new Player(profile);
players.put(player.getUuid(), player);
playerNameToUUIDCache.put(player.getName().toUpperCase(), player.getUuid());