From f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8 Mon Sep 17 00:00:00 2001 From: faketruth Date: Fri, 9 Mar 2012 13:42:28 +0000 Subject: cClientHandles have a unique ID now to distinguish them cAuthenticator uses unique client ID for authentication Changed the kick function used by cAuthenticator to take a client ID instead of name, so the correct user is kicked Using callback reference instead of pointer in GetChunkData and affiliates GetChunkData returns false when failed, and true when succeeded Renamed entity type enums to something prettier Exposed some functions to Lua git-svn-id: http://mc-server.googlecode.com/svn/trunk@388 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cRoot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cRoot.h') diff --git a/source/cRoot.h b/source/cRoot.h index 85b12eb12..9505ff6f0 100644 --- a/source/cRoot.h +++ b/source/cRoot.h @@ -49,8 +49,8 @@ public: void ServerCommand(const char* a_Cmd ); //tolua_export - void KickUser(const AString & iUserName, const AString & iReason); // Kicks the user, no matter in what world they are. Used from cAuthenticator - void AuthenticateUser(const AString & iUserName); // Called by cAuthenticator to auth the specified user + void KickUser(int a_ClientID, const AString & a_Reason); // Kicks the user, no matter in what world they are. Used from cAuthenticator + void AuthenticateUser(int a_ClientID); // Called by cAuthenticator to auth the specified user void TickWorlds( float a_Dt ); -- cgit v1.2.3