fix server example and add an endpoint to get uuid from username

This commit is contained in:
Lee
2024-04-11 00:21:36 +01:00
parent 624dcc0be6
commit a3b9cb5e77
4 changed files with 18 additions and 6 deletions

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