diff options
author | daniel0916 <theschokolps@gmail.com> | 2014-04-13 13:04:56 +0200 |
---|---|---|
committer | daniel0916 <theschokolps@gmail.com> | 2014-04-13 13:04:56 +0200 |
commit | b506a7407661c0527255466cf8b315824b0003c0 (patch) | |
tree | c1a08a8c495fdd9e25fbcabbc5c072efb5470798 /src/ClientHandle.cpp | |
parent | Updated the NetherFort prefabs to current Gallery contents. (diff) | |
download | cuberite-b506a7407661c0527255466cf8b315824b0003c0.tar cuberite-b506a7407661c0527255466cf8b315824b0003c0.tar.gz cuberite-b506a7407661c0527255466cf8b315824b0003c0.tar.bz2 cuberite-b506a7407661c0527255466cf8b315824b0003c0.tar.lz cuberite-b506a7407661c0527255466cf8b315824b0003c0.tar.xz cuberite-b506a7407661c0527255466cf8b315824b0003c0.tar.zst cuberite-b506a7407661c0527255466cf8b315824b0003c0.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()); |