summaryrefslogtreecommitdiffstats
path: root/source/Protocol125.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-05 22:30:27 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-05 22:30:27 +0200
commitf94456dd3eccc65a6f304d4b804ca09a67fa6008 (patch)
tree9997e63b9e0152661232aff9c78b78f2b215233e /source/Protocol125.cpp
parentProtoProxy: Added about 10 new packet types parsed (diff)
downloadcuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar
cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.gz
cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.bz2
cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.lz
cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.xz
cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.zst
cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol125.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/Protocol125.cpp b/source/Protocol125.cpp
index 4f162dab6..7047f1f30 100644
--- a/source/Protocol125.cpp
+++ b/source/Protocol125.cpp
@@ -974,10 +974,9 @@ int cProtocol125::ParseHandshake(void)
LOGD("HANDSHAKE %s", Username.c_str());
- if (cRoot::Get()->GetDefaultWorld()->GetNumPlayers() >= cRoot::Get()->GetDefaultWorld()->GetMaxPlayers())
+ if (!m_Client->HandleHandshake( m_Username ))
{
- m_Client->Kick("The server is currently full :(-- Try again later");
- return PARSE_OK;
+ return PARSE_OK; // Player is not allowed into the server
}
SendHandshake(cRoot::Get()->GetServer()->GetServerID());