diff options
author | madmaxoft <github@xoft.cz> | 2014-08-03 12:12:28 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-08-03 22:04:50 +0200 |
commit | 003f18bd0f7593bddf5c6af89e3f6fc13632300d (patch) | |
tree | a485b0c959ec99cf9e956d9774f6a5b3aa10263f /src/Protocol/MojangAPI.h | |
parent | ToLua driver: disabled output buffering. (diff) | |
download | cuberite-003f18bd0f7593bddf5c6af89e3f6fc13632300d.tar cuberite-003f18bd0f7593bddf5c6af89e3f6fc13632300d.tar.gz cuberite-003f18bd0f7593bddf5c6af89e3f6fc13632300d.tar.bz2 cuberite-003f18bd0f7593bddf5c6af89e3f6fc13632300d.tar.lz cuberite-003f18bd0f7593bddf5c6af89e3f6fc13632300d.tar.xz cuberite-003f18bd0f7593bddf5c6af89e3f6fc13632300d.tar.zst cuberite-003f18bd0f7593bddf5c6af89e3f6fc13632300d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/MojangAPI.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Protocol/MojangAPI.h b/src/Protocol/MojangAPI.h index ac8995bb5..7f3ef4e39 100644 --- a/src/Protocol/MojangAPI.h +++ b/src/Protocol/MojangAPI.h @@ -45,6 +45,13 @@ public: Note: only checks the string's length, not the actual content. */ static AString MakeUUIDDashed(const AString & a_UUID); + /** Converts a player name into a UUID. + The UUID will be empty on error. + If a_UseOnlyCached is true, the function only consults the cached values. + If a_UseOnlyCached is false and the name is not found in the cache, it is looked up online, which is a blocking + operation, do not use this in world-tick thread! */ + AString GetUUIDFromPlayerName(const AString & a_PlayerName, bool a_UseOnlyCached = false); + // tolua_end /** Converts the player names into UUIDs. |