diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-14 20:49:31 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-14 20:49:31 +0200 |
commit | 4e24f711abd3d6a93f01ee7c297eb67c8aedbd37 (patch) | |
tree | 8b9c4ada0a310717932fcbeda10e0d4f8cc5d8bc /src/ClientHandle.cpp | |
parent | Only one instance of server can be started (diff) | |
download | cuberite-4e24f711abd3d6a93f01ee7c297eb67c8aedbd37.tar cuberite-4e24f711abd3d6a93f01ee7c297eb67c8aedbd37.tar.gz cuberite-4e24f711abd3d6a93f01ee7c297eb67c8aedbd37.tar.bz2 cuberite-4e24f711abd3d6a93f01ee7c297eb67c8aedbd37.tar.lz cuberite-4e24f711abd3d6a93f01ee7c297eb67c8aedbd37.tar.xz cuberite-4e24f711abd3d6a93f01ee7c297eb67c8aedbd37.tar.zst cuberite-4e24f711abd3d6a93f01ee7c297eb67c8aedbd37.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 56275a9b2..fcd8d2bcd 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -290,17 +290,18 @@ void cClientHandle::Kick(const AString & a_Reason) -void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID) +void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID, const AString & a_Properties) { if (m_State != csAuthenticating) { return; } - ASSERT( m_Player == NULL ); + ASSERT(m_Player == NULL); m_Username = a_Name; m_UUID = a_UUID; + m_Properties = a_Properties; // Send login success (if the protocol supports it): m_Protocol->SendLoginSuccess(); @@ -324,7 +325,7 @@ void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID) if (!cRoot::Get()->GetPluginManager()->CallHookPlayerJoined(*m_Player)) { cRoot::Get()->BroadcastChatJoin(Printf("%s has joined the game", GetUsername().c_str())); - LOGINFO("Player %s has joined the game.", m_Username.c_str()); + LOGINFO("Player %s has joined the game", m_Username.c_str()); } m_ConfirmPosition = m_Player->GetPosition(); |