1
0

cMojangAPI: Added UUID-to-Name lookup.

Also fixed the bindings, now all functions are static-like.
This commit is contained in:
madmaxoft
2014-08-03 21:32:20 +02:00
parent 98a13d97b3
commit 21f52676f3
6 changed files with 531 additions and 72 deletions

View File

@@ -191,8 +191,8 @@ bool cAuthenticator::AuthWithYggdrasil(AString & a_UserName, const AString & a_S
a_UUID = cMojangAPI::MakeUUIDShort(root.get("id", "").asString());
a_Properties = root["properties"];
// Store the player's UUID in the NameToUUID map in MojangAPI:
cRoot::Get()->GetMojangAPI().AddPlayerNameToUUIDMapping(a_UserName, a_UUID);
// Store the player's profile in the MojangAPI caches:
cRoot::Get()->GetMojangAPI().AddPlayerProfile(a_UserName, a_UUID, a_Properties);
return true;
}