This commit is contained in:
Lee 2024-04-10 12:17:27 +01:00
parent b1bcaad8dc
commit 7855b5bcca

@ -86,7 +86,7 @@ public class PlayerService {
*/
private UUID usernameToUuid(String username) {
log.info("Getting UUID from username: {}", username);
Optional<CachedPlayerName> cachedPlayerName = playerNameCacheRepository.findById(username);
Optional<CachedPlayerName> cachedPlayerName = playerNameCacheRepository.findById(username.toUpperCase());
if (cachedPlayerName.isPresent()) {
return cachedPlayerName.get().getUniqueId();
}