getUUID

@GET(value = "/users/profiles/minecraft/{username}")
abstract suspend fun getUUID(@Path(value = "username") username: String): PlayerUUIDProfile

Retrieves the player's UUID profile from the Mojang API based on the provided username.

Return

The PlayerUUIDProfile containing the player's UUID and name, along with flags indicating legacy or demo accounts.

Parameters

username

The username of the player whose UUID profile is to be retrieved.