Package ml.karmaconfigs.api.common.utils
Class UUIDUtil
java.lang.Object
ml.karmaconfigs.api.common.utils.UUIDUtil
Karma UUID fetcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UUIDfetchMinecraftUUID(String name)Fetch the UUIDstatic StringFetch the client nickstatic UUIDforceMinecraftOffline(String name)Force online UUID fetchstatic @Nullable UUIDfromTrimmed(String id)Get a UUID from a trimmed UUIDstatic voidregisterMinecraftClient(String name)Register a minecraft client into the karma UUID engine database API
-
Constructor Details
-
UUIDUtil
public UUIDUtil()
-
-
Method Details
-
registerMinecraftClient
Register a minecraft client into the karma UUID engine database API- Parameters:
name- the client name
-
fetchMinecraftUUID
Fetch the UUID- Parameters:
name- the player name- Returns:
- the name UUID
-
forceMinecraftOffline
Force online UUID fetch- Parameters:
name- the client name- Returns:
- the name UUID
-
fetchNick
Fetch the client nick- Parameters:
uuid- the UUID to search for- Returns:
- the nick or null if not available in karma UUID engine database API
-
fromTrimmed
Get a UUID from a trimmed UUID- Parameters:
id- the trimmed UUID- Returns:
- the full UUID
-