diff options
author | madmaxoft <github@xoft.cz> | 2014-01-13 20:32:15 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-13 20:32:15 +0100 |
commit | ada54b79d71fbfc653799b535efd11b466423f75 (patch) | |
tree | 73aa5bbd56ac0a0c3c16b64e341c67a702883b62 /src/ClientHandle.h | |
parent | ProtoProxy: Fixed login kick packet direction. (diff) | |
download | cuberite-ada54b79d71fbfc653799b535efd11b466423f75.tar cuberite-ada54b79d71fbfc653799b535efd11b466423f75.tar.gz cuberite-ada54b79d71fbfc653799b535efd11b466423f75.tar.bz2 cuberite-ada54b79d71fbfc653799b535efd11b466423f75.tar.lz cuberite-ada54b79d71fbfc653799b535efd11b466423f75.tar.xz cuberite-ada54b79d71fbfc653799b535efd11b466423f75.tar.zst cuberite-ada54b79d71fbfc653799b535efd11b466423f75.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 297d62d57..da2704b72 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -171,7 +171,13 @@ public: void HandleCreativeInventory(short a_SlotNum, const cItem & a_HeldItem); void HandleDisconnect (const AString & a_Reason); void HandleEntityAction (int a_EntityID, char a_ActionID); + + /** 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 + */ bool HandleHandshake (const AString & a_Username); + void HandleKeepAlive (int a_KeepAliveID); void HandleLeftClick (int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status); void HandlePing (void); |