summaryrefslogtreecommitdiffstats
path: root/src/Protocol/MojangAPI.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-31 10:02:50 +0200
committermadmaxoft <github@xoft.cz>2014-07-31 10:02:50 +0200
commit8b519bf6e20a987c9544ef11f0df6467831cc069 (patch)
tree4d6c3b6d74db42e9f0ff271b164febdbd25c5479 /src/Protocol/MojangAPI.h
parentMojangAPI: Renamed cache file to MojangAPI.sqlite. (diff)
downloadcuberite-8b519bf6e20a987c9544ef11f0df6467831cc069.tar
cuberite-8b519bf6e20a987c9544ef11f0df6467831cc069.tar.gz
cuberite-8b519bf6e20a987c9544ef11f0df6467831cc069.tar.bz2
cuberite-8b519bf6e20a987c9544ef11f0df6467831cc069.tar.lz
cuberite-8b519bf6e20a987c9544ef11f0df6467831cc069.tar.xz
cuberite-8b519bf6e20a987c9544ef11f0df6467831cc069.tar.zst
cuberite-8b519bf6e20a987c9544ef11f0df6467831cc069.zip
Diffstat (limited to 'src/Protocol/MojangAPI.h')
-rw-r--r--src/Protocol/MojangAPI.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Protocol/MojangAPI.h b/src/Protocol/MojangAPI.h
index c99f940ad..ac8995bb5 100644
--- a/src/Protocol/MojangAPI.h
+++ b/src/Protocol/MojangAPI.h
@@ -50,8 +50,10 @@ public:
/** Converts the player names into UUIDs.
a_PlayerName[idx] will be converted to UUID and returned as idx-th value
The UUID will be empty on error.
- Blocking operation, do not use in world-tick thread! */
- AStringVector GetUUIDsFromPlayerNames(const AStringVector & a_PlayerName);
+ If a_UseOnlyCached is true, only the cached values are returned.
+ If a_UseOnlyCached is false, the names not found in the cache are looked up online, which is a blocking
+ operation, do not use this in world-tick thread! */
+ AStringVector GetUUIDsFromPlayerNames(const AStringVector & a_PlayerName, bool a_UseOnlyCached = false);
// tolua_begin