diff options
author | madmaxoft <github@xoft.cz> | 2014-04-14 18:53:56 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-14 18:53:56 +0200 |
commit | ffe65b6a184224d4684f08bcbba01d1ce92d7236 (patch) | |
tree | 7cc93ae32afcafa6f4c6cc5f630ec1b50dc6f0b0 /src/ClientHandle.cpp | |
parent | Initial 1.7.6 protocol support. (diff) | |
parent | Fixed mistake (diff) | |
download | cuberite-ffe65b6a184224d4684f08bcbba01d1ce92d7236.tar cuberite-ffe65b6a184224d4684f08bcbba01d1ce92d7236.tar.gz cuberite-ffe65b6a184224d4684f08bcbba01d1ce92d7236.tar.bz2 cuberite-ffe65b6a184224d4684f08bcbba01d1ce92d7236.tar.lz cuberite-ffe65b6a184224d4684f08bcbba01d1ce92d7236.tar.xz cuberite-ffe65b6a184224d4684f08bcbba01d1ce92d7236.tar.zst cuberite-ffe65b6a184224d4684f08bcbba01d1ce92d7236.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 5876e55c7..615039949 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -24,7 +24,7 @@ #include "Root.h" -#include "Authenticator.h" +#include "Protocol/Authenticator.h" #include "MersenneTwister.h" #include "Protocol/ProtocolRecognizer.h" @@ -188,7 +188,7 @@ void cClientHandle::Kick(const AString & a_Reason) -void cClientHandle::Authenticate(void) +void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID) { if (m_State != csAuthenticating) { @@ -197,6 +197,9 @@ void cClientHandle::Authenticate(void) ASSERT( m_Player == NULL ); + m_Username = a_Name; + m_UUID = a_UUID; + // Spawn player (only serversided, so data is loaded) m_Player = new cPlayer(this, GetUsername()); |