@Singleton
public class UUIDUtility
extends java.lang.Object
Attempts are made in order: - Parse UUID out of the given String - Find an UUID from the database matching the player name - Find an UUID from Mojang API that matches the player name
Constructor and Description |
---|
UUIDUtility(DBSystem dbSystem,
ErrorLogger errorLogger) |
Modifier and Type | Method and Description |
---|---|
java.util.UUID |
getUUIDOf(java.lang.String playerName)
Get UUID of a player.
|
static java.util.Optional<java.util.UUID> |
parseFromString(java.lang.String uuidString) |
@Inject public UUIDUtility(DBSystem dbSystem, ErrorLogger errorLogger)