diff options
author | Mattes D <github@xoft.cz> | 2014-07-16 13:30:57 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-07-16 13:30:57 +0200 |
commit | e444106d0924b1faecc61e50ca27a1d9c7fd7c9f (patch) | |
tree | 3d3aa66b0bf8ed4063fbda9ce2ddef62d9185fab /src/ClientHandle.h | |
parent | Fixed a DropSpenser AddFace bug (diff) | |
parent | Suggestions (diff) | |
download | cuberite-e444106d0924b1faecc61e50ca27a1d9c7fd7c9f.tar cuberite-e444106d0924b1faecc61e50ca27a1d9c7fd7c9f.tar.gz cuberite-e444106d0924b1faecc61e50ca27a1d9c7fd7c9f.tar.bz2 cuberite-e444106d0924b1faecc61e50ca27a1d9c7fd7c9f.tar.lz cuberite-e444106d0924b1faecc61e50ca27a1d9c7fd7c9f.tar.xz cuberite-e444106d0924b1faecc61e50ca27a1d9c7fd7c9f.tar.zst cuberite-e444106d0924b1faecc61e50ca27a1d9c7fd7c9f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 922740b11..ca39a01cd 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -20,6 +20,7 @@ #include "Map.h" #include "Enchantments.h" #include "UI/SlotArea.h" +#include "json/json.h" @@ -67,6 +68,8 @@ public: const AString & GetUUID(void) const { return m_UUID; } // tolua_export void SetUUID(const AString & a_UUID) { m_UUID = a_UUID; } + + const Json::Value & GetProperties(void) const { return m_Properties; } /** Generates an UUID based on the username stored for this client, and stores it in the m_UUID member. This is used for the offline (non-auth) mode, when there's no UUID source. @@ -91,8 +94,10 @@ public: static AString FormatChatPrefix(bool ShouldAppendChatPrefixes, AString a_ChatPrefixS, AString m_Color1, AString m_Color2); - void Kick(const AString & a_Reason); // tolua_export - void Authenticate(const AString & a_Name, const AString & a_UUID); // Called by cAuthenticator when the user passes authentication + void Kick(const AString & a_Reason); // tolua_export + + /** Authenticates the specified user, called by cAuthenticator */ + void Authenticate(const AString & a_Name, const AString & a_UUID, const Json::Value & a_Properties); void StreamChunks(void); @@ -280,6 +285,7 @@ private: AString m_Username; AString m_Password; + Json::Value m_Properties; cCriticalSection m_CSChunkLists; cChunkCoordsList m_LoadedChunks; // Chunks that the player belongs to |