diff options
author | tycho <work.tycho@gmail.com> | 2015-09-15 18:12:03 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-11-11 13:28:12 +0100 |
commit | 6c4740c79889531ca1109d0f2d81eef6f8326e31 (patch) | |
tree | 8e35d0d269f70c0e04791f2708f9e551d74e3363 /src/Server.h | |
parent | Merge pull request #2632 from Gargaj/patch-1 (diff) | |
download | cuberite-6c4740c79889531ca1109d0f2d81eef6f8326e31.tar cuberite-6c4740c79889531ca1109d0f2d81eef6f8326e31.tar.gz cuberite-6c4740c79889531ca1109d0f2d81eef6f8326e31.tar.bz2 cuberite-6c4740c79889531ca1109d0f2d81eef6f8326e31.tar.lz cuberite-6c4740c79889531ca1109d0f2d81eef6f8326e31.tar.xz cuberite-6c4740c79889531ca1109d0f2d81eef6f8326e31.tar.zst cuberite-6c4740c79889531ca1109d0f2d81eef6f8326e31.zip |
Diffstat (limited to 'src/Server.h')
-rw-r--r-- | src/Server.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Server.h b/src/Server.h index 4d0bc1c18..918a5769e 100644 --- a/src/Server.h +++ b/src/Server.h @@ -69,9 +69,9 @@ public: 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); + /** Check if the client is on the server. + Returns true is client is found in any world, or in the queue. */ + bool IsClientOnServer(AString a_Username); /** Can login more than once with same username. Returns false if it is not allowed, true otherwise. */ @@ -107,9 +107,6 @@ public: /** Called by cClientHandle's destructor; stop m_SocketThreads from calling back into a_Client */ void ClientDestroying(const cClientHandle * a_Client); - /** Don't tick a_Client anymore, it will be ticked from its cPlayer instead */ - void ClientMovedToWorld(const cClientHandle * a_Client); - /** Notifies the server that a player was created; the server uses this to adjust the number of players */ void PlayerCreated(const cPlayer * a_Player); @@ -138,6 +135,9 @@ public: Read from settings, admins should set this to true only when they chain to BungeeCord, it makes the server vulnerable to identity theft through direct connections. */ bool ShouldAllowBungeeCord(void) const { return m_ShouldAllowBungeeCord; } + + + void QueueRemoveAndDestroyClient(cClientHandle * a_Client); private: |