summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-14 20:21:00 +0200
committermadmaxoft <github@xoft.cz>2014-04-14 20:21:00 +0200
commitd505ffc704d85cc1b31ae87647ba979fda84f46f (patch)
treee76696eff4fff2a070316dffcac190e3b34dd5b1 /src/ClientHandle.h
parentMerge remote-tracking branch 'daniel0916/YggdrasilAuthentication' into Proto176 (diff)
downloadcuberite-d505ffc704d85cc1b31ae87647ba979fda84f46f.tar
cuberite-d505ffc704d85cc1b31ae87647ba979fda84f46f.tar.gz
cuberite-d505ffc704d85cc1b31ae87647ba979fda84f46f.tar.bz2
cuberite-d505ffc704d85cc1b31ae87647ba979fda84f46f.tar.lz
cuberite-d505ffc704d85cc1b31ae87647ba979fda84f46f.tar.xz
cuberite-d505ffc704d85cc1b31ae87647ba979fda84f46f.tar.zst
cuberite-d505ffc704d85cc1b31ae87647ba979fda84f46f.zip
Diffstat (limited to 'src/ClientHandle.h')
-rw-r--r--src/ClientHandle.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index 0f07c980b..90b971e16 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -63,7 +63,12 @@ public:
cPlayer* GetPlayer() { return m_Player; } // tolua_export
const AString & GetUUID(void) const { return m_UUID; } // tolua_export
- void setUUID(const AString & a_UUID) { m_UUID = a_UUID; }
+ void SetUUID(const AString & a_UUID) { m_UUID = a_UUID; }
+
+ /** Generates an UUID based on the player name provided.
+ This is used for the offline (non-auth) mode, when there's no UUID source.
+ Each username generates a unique and constant UUID, so that when the player reconnects with the same name, their UUID is the same. */
+ void GenerateOfflineUUID(void);
void Kick(const AString & a_Reason); // tolua_export
void Authenticate(const AString & a_Name, const AString & a_UUID); // Called by cAuthenticator when the user passes authentication