summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-10 11:17:11 +0100
committerMattes D <github@xoft.cz>2014-12-10 11:17:11 +0100
commit32bce44f1f6167bfce5deaa084e7dd90f71e39e2 (patch)
tree33315fbd4cda5b3be615f763deca3a8f660ead8f /src/Root.cpp
parentFixed compiling. (diff)
parentChanged method call to DoesAllowMultiLogin() instead of IsAllowMultiLogin() (diff)
downloadcuberite-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/Root.cpp')
-rw-r--r--src/Root.cpp16
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);