stringToUUID

fun stringToUUID(uuidString: String): UUID

Converts a compact (no-hyphen) or hyphenated UUID string into a standard Java UUID by inserting hyphens at the correct positions.

Mojang API responses may return UUIDs without hyphens; this helper produces a valid, parseable UUID.

Return

the resulting UUID

Parameters

uuidString

the raw UUID string to convert