diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-09 03:02:25 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-09 03:02:25 +0200 |
commit | f94df06b6601f9dcecd383f5d093d225f41d1c65 (patch) | |
tree | 891720327a4971886e909e19f04bf1734addee8c /src/ClientHandle.cpp | |
parent | Merge branch 'master' into 1.8-Protocol (diff) | |
download | cuberite-f94df06b6601f9dcecd383f5d093d225f41d1c65.tar cuberite-f94df06b6601f9dcecd383f5d093d225f41d1c65.tar.gz cuberite-f94df06b6601f9dcecd383f5d093d225f41d1c65.tar.bz2 cuberite-f94df06b6601f9dcecd383f5d093d225f41d1c65.tar.lz cuberite-f94df06b6601f9dcecd383f5d093d225f41d1c65.tar.xz cuberite-f94df06b6601f9dcecd383f5d093d225f41d1c65.tar.zst cuberite-f94df06b6601f9dcecd383f5d093d225f41d1c65.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index f24309159..f97ce26c9 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -127,7 +127,7 @@ cClientHandle::~cClientHandle() if (!m_Username.empty() && (World != NULL)) { // Send the Offline PlayerList packet: - World->BroadcastPlayerListItem(*m_Player, false, this); + World->BroadcastPlayerListItem(*m_Player, 4, this); } if (World != NULL) { @@ -366,6 +366,10 @@ void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID, m_Player->Initialize(*World); m_State = csAuthenticated; + // Send player list items + SendPlayerListItem(*m_Player, 0); + World->SendPlayerList(m_Player); + // Query player team m_Player->UpdateTeam(); @@ -2378,9 +2382,9 @@ void cClientHandle::SendPlayerAbilities() -void cClientHandle::SendPlayerListItem(const cPlayer & a_Player, bool a_IsOnline) +void cClientHandle::SendPlayerListItem(const cPlayer & a_Player, char a_Action) { - m_Protocol->SendPlayerListItem(a_Player, a_IsOnline); + m_Protocol->SendPlayerListItem(a_Player, a_Action); } |