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/Root.cpp | |
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 '')
-rw-r--r-- | src/Root.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index a396d6998..29daaedcc 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -643,6 +643,22 @@ bool cRoot::DoWithPlayerByUUID(const AString & a_PlayerUUID, cPlayerListCallback +bool cRoot::DoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback) +{ + for (auto World : m_WorldsByName) + { + if (World.second->DoWithPlayer(a_PlayerName, a_Callback)) + { + return true; + } + } + return false; +} + + + + + AString cRoot::GetProtocolVersionTextFromInt(int a_ProtocolVersion) { return cProtocolRecognizer::GetVersionTextFromInt(a_ProtocolVersion); |