03-03-2015, 04:06 AM
There's not a one-step solution, but there is one:
Use cServer:ShouldAuthenticate() to query whether the server is in online mode or not, then use cMojangAPI:GetUUIDFromPlayerName() to convert player name to online UUID, or cClientHandle:GenerateOfflineUUID() to convert it to the offline UUID.
Use cServer:ShouldAuthenticate() to query whether the server is in online mode or not, then use cMojangAPI:GetUUIDFromPlayerName() to convert player name to online UUID, or cClientHandle:GenerateOfflineUUID() to convert it to the offline UUID.