summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorvincentleung1 <vincent.leung60@gmail.com>2014-11-30 00:59:48 +0100
committervincentleung1 <vincent.leung60@gmail.com>2014-11-30 00:59:48 +0100
commit9caa3b19c15b257af47a924c68f9b13517447c26 (patch)
tree72c9dc045cb4f6bd3aa4c3491ef656a0f7c876fc /src/ClientHandle.cpp
parentremoved GetUsernames() from World (diff)
downloadcuberite-9caa3b19c15b257af47a924c68f9b13517447c26.tar
cuberite-9caa3b19c15b257af47a924c68f9b13517447c26.tar.gz
cuberite-9caa3b19c15b257af47a924c68f9b13517447c26.tar.bz2
cuberite-9caa3b19c15b257af47a924c68f9b13517447c26.tar.lz
cuberite-9caa3b19c15b257af47a924c68f9b13517447c26.tar.xz
cuberite-9caa3b19c15b257af47a924c68f9b13517447c26.tar.zst
cuberite-9caa3b19c15b257af47a924c68f9b13517447c26.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index f63754aab..54a39cdc2 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1790,7 +1790,6 @@ void cClientHandle::HandleKeepAlive(int a_KeepAliveID)
bool cClientHandle::HandleHandshake(const AString & a_Username)
{
-
if (!cRoot::Get()->GetPluginManager()->CallHookHandshake(*this, a_Username))
{
if (cRoot::Get()->GetServer()->GetNumPlayers() >= cRoot::Get()->GetServer()->GetMaxPlayers())
@@ -1811,11 +1810,12 @@ bool cClientHandle::HandleHandshake(const AString & a_Username)
return false;
}
}
- class cCallback : public cPlayerListCallback
+ class cCallback :
+ public cPlayerListCallback
{
virtual bool Item(cPlayer * a_Player) override
{
- return false;
+ return true;
}
} Callback;
if (cRoot::Get()->GetDefaultWorld()->DoWithPlayer(a_Username, Callback))