forked from MinecraftUtilities/Backend
yes!
This commit is contained in:
parent
b1bcaad8dc
commit
7855b5bcca
@ -86,7 +86,7 @@ public class PlayerService {
|
|||||||
*/
|
*/
|
||||||
private UUID usernameToUuid(String username) {
|
private UUID usernameToUuid(String username) {
|
||||||
log.info("Getting UUID from username: {}", username);
|
log.info("Getting UUID from username: {}", username);
|
||||||
Optional<CachedPlayerName> cachedPlayerName = playerNameCacheRepository.findById(username);
|
Optional<CachedPlayerName> cachedPlayerName = playerNameCacheRepository.findById(username.toUpperCase());
|
||||||
if (cachedPlayerName.isPresent()) {
|
if (cachedPlayerName.isPresent()) {
|
||||||
return cachedPlayerName.get().getUniqueId();
|
return cachedPlayerName.get().getUniqueId();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user