summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 23:38:03 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 23:38:03 +0100
commit48d30d6ab4657e00c0c861d67285256daeff1142 (patch)
treeb9dc6b6e59f09224fe3e2b80c5c247b44331e469 /source/cClientHandle.h
parentAdded all current hooks to the new plugin structure. (diff)
downloadcuberite-48d30d6ab4657e00c0c861d67285256daeff1142.tar
cuberite-48d30d6ab4657e00c0c861d67285256daeff1142.tar.gz
cuberite-48d30d6ab4657e00c0c861d67285256daeff1142.tar.bz2
cuberite-48d30d6ab4657e00c0c861d67285256daeff1142.tar.lz
cuberite-48d30d6ab4657e00c0c861d67285256daeff1142.tar.xz
cuberite-48d30d6ab4657e00c0c861d67285256daeff1142.tar.zst
cuberite-48d30d6ab4657e00c0c861d67285256daeff1142.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cClientHandle.h b/source/cClientHandle.h
index 0011903b1..4e7d8ce91 100644
--- a/source/cClientHandle.h
+++ b/source/cClientHandle.h
@@ -22,13 +22,14 @@ public:
cClientHandle(const cSocket & a_Socket);
~cClientHandle();
- static const int VIEWDISTANCE = 13; // MUST be odd number or CRASH!
+ static const int VIEWDISTANCE = 15; // MUST be odd number or CRASH!
static const int GENERATEDISTANCE = 2; // Server generates this many chunks AHEAD of player sight.
const cSocket & GetSocket();
cPlayer* GetPlayer() { return m_Player; } // tolua_export
- void Kick( const char* a_Reason ); //tolua_export
+ void Kick(const AString & a_Reason); //tolua_export
+ void Authenticate(void); // Called by cAuthenticator when the user passes authentication
void AddPacket( cPacket * a_Packet );
void HandlePendingPackets();
@@ -51,9 +52,8 @@ public:
static void SendThread( void *lpParam );
static void ReceiveThread( void *lpParam );
- static void AuthenticateThread( void* a_Param );
- const char* GetUsername();
+ const AString & GetUsername(void) const;
inline short GetPing() { return m_Ping; }
private: