@Deprecated public final class MojangApi extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_HISTORY_URL
Deprecated.
|
static String |
PROFILES_URL
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Promise<List<String>> |
getUsernameHistory(UUID uuid)
Deprecated.
Gets a promise of the history of the names owned by the player with the supplied
UUID, in chronological order, fetching it from the Mojang API. |
static Promise<UUID> |
usernameToUuid(String username)
Deprecated.
Gets a promise for the online
UUID of a player by fetching it from the Mojang API. |
static Promise<String> |
uuidToUsername(UUID uuid)
Deprecated.
Gets a promise of the online username of the player with the supplied
UUID by fetching it from the Mojang API. |
public static final String PROFILES_URL
public static final String NAME_HISTORY_URL
public static Promise<UUID> usernameToUuid(String username)
UUID of a player by fetching it from the Mojang API.
The Mojang API has a limit of 600 requests per 10 minutes.public static Promise<String> uuidToUsername(UUID uuid)
UUID by fetching it from the Mojang API.
The Mojang API has a limit of 600 requests per 10 minutes.uuid - the UUID of the player from which to get the namepublic static Promise<List<String>> getUsernameHistory(UUID uuid)
UUID, in chronological order, fetching it from the Mojang API.
The Mojang API has a limit of 600 requests per 10 minutes.uuid - the UUID of the player from which to fetch the name historyCopyright © 2022. All rights reserved.