summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-07-16 13:30:57 +0200
committerMattes D <github@xoft.cz>2014-07-16 13:30:57 +0200
commite444106d0924b1faecc61e50ca27a1d9c7fd7c9f (patch)
tree3d3aa66b0bf8ed4063fbda9ce2ddef62d9185fab /src/ClientHandle.cpp
parentFixed a DropSpenser AddFace bug (diff)
parentSuggestions (diff)
downloadcuberite-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 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 340db6394..a6477eb25 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 Json::Value & 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();