diff options
author | Mattes D <github@xoft.cz> | 2014-12-10 11:17:11 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-12-10 11:17:11 +0100 |
commit | 32bce44f1f6167bfce5deaa084e7dd90f71e39e2 (patch) | |
tree | 33315fbd4cda5b3be615f763deca3a8f660ead8f /src/Server.h | |
parent | Fixed compiling. (diff) | |
parent | Changed method call to DoesAllowMultiLogin() instead of IsAllowMultiLogin() (diff) | |
download | cuberite-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 'src/Server.h')
-rw-r--r-- | src/Server.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Server.h b/src/Server.h index 022794bbc..39a5a1a71 100644 --- a/src/Server.h +++ b/src/Server.h @@ -67,6 +67,14 @@ public: // tolua_export int GetNumPlayers(void) const; void SetMaxPlayers(int a_MaxPlayers) { m_MaxPlayers = a_MaxPlayers; } + /** Check if the player is queued to be transferred to a World. + Returns true is Player is found in queue. */ + bool IsPlayerInQueue(AString a_Username); + + /** Can login more than once with same username. + Returns false if it is not allowed, true otherwise. */ + bool DoesAllowMultiLogin(void) { return m_bAllowMultiLogin; } + // Hardcore mode or not: bool IsHardcore(void) const { return m_bIsHardcore; } @@ -216,6 +224,9 @@ private: int m_MaxPlayers; bool m_bIsHardcore; + /** True - allow same username to login more than once False - only once */ + bool m_bAllowMultiLogin; + cTickThread m_TickThread; cEvent m_RestartEvent; |