summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-10 11:17:11 +0100
committerMattes D <github@xoft.cz>2014-12-10 11:17:11 +0100
commit32bce44f1f6167bfce5deaa084e7dd90f71e39e2 (patch)
tree33315fbd4cda5b3be615f763deca3a8f660ead8f /src/ClientHandle.h
parentFixed compiling. (diff)
parentChanged method call to DoesAllowMultiLogin() instead of IsAllowMultiLogin() (diff)
downloadcuberite-32bce44f1f6167bfce5deaa084e7dd90f71e39e2.tar
cuberite-32bce44f1f6167bfce5deaa084e7dd90f71e39e2.tar.gz
cuberite-32bce44f1f6167bfce5deaa084e7dd90f71e39e2.tar.bz2
cuberite-32bce44f1f6167bfce5deaa084e7dd90f71e39e2.tar.lz
cuberite-32bce44f1f6167bfce5deaa084e7dd90f71e39e2.tar.xz
cuberite-32bce44f1f6167bfce5deaa084e7dd90f71e39e2.tar.zst
cuberite-32bce44f1f6167bfce5deaa084e7dd90f71e39e2.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index 495348ac3..0e588d839 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -280,6 +280,10 @@ public:
void HandleEntityLeaveBed (int a_EntityID);
void HandleEntitySprinting (int a_EntityID, bool a_IsSprinting);
+ /** Kicks the current player if the same username is already logged in.
+ Returns false if a player has been kicked, true otherwise. */
+ bool CheckMultiLogin(const AString & a_Username);
+
/** Called when the protocol handshake has been received (for protocol versions that support it;
otherwise the first instant when a username is received).
Returns true if the player is to be let in, false if they were disconnected