diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-16 01:03:47 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-16 01:03:47 +0200 |
commit | 1f6854792cdd6792b27c4f9f3d7d857df9dd64bf (patch) | |
tree | 4a45fccb4c6dbf7794d8f5e9d4b0bd5c68a0ec0a /src/Server.h | |
parent | Player properties are now retrieved (diff) | |
download | cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.gz cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.bz2 cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.lz cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.xz cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.tar.zst cuberite-1f6854792cdd6792b27c4f9f3d7d857df9dd64bf.zip |
Diffstat (limited to 'src/Server.h')
-rw-r--r-- | src/Server.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Server.h b/src/Server.h index 672dc26c0..cf5fa524f 100644 --- a/src/Server.h +++ b/src/Server.h @@ -41,6 +41,11 @@ class cCommandOutputCallback; typedef std::list<cClientHandle *> cClientHandleList; +namespace Json +{ + class Value; +} + @@ -83,7 +88,9 @@ public: // tolua_export void Shutdown(void); void KickUser(int a_ClientID, const AString & a_Reason); - void AuthenticateUser(int a_ClientID, const AString & a_Name, const AString & a_UUID, const AString & a_Properties); // Called by cAuthenticator to auth the specified user + + /** Authenticates the specified user, called by cAuthenticator */ + void AuthenticateUser(int a_ClientID, const AString & a_Name, const AString & a_UUID, const Json::Value & a_Properties); const AString & GetServerID(void) const { return m_ServerID; } // tolua_export |