Heyo, newbie to spigot, please excuse my ignorance lol
I've managed to obtain the UUID of a given player via the Minecraft API- the reason I dont grab it from a player object in game is because I'm sourcing the username from a discord command- but when I try to convert that UUID into an OfflinePlayer object via getOfflinePlayer(), it gives me an error saying the UUID is invalid.
Relevant code:
OfflinePlayer player = plugin.getServer().getOfflinePlayer(java.util.UUID.fromString(resUUID)
java.lang.IllegalArgumentException: Invalid UUID string: cbf8d615b44049cc90de9e66d7c8ac53