summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-14 22:33:54 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-14 22:33:54 +0100
commita0e1e43fc187d79021b4e84e70729255f7f690e2 (patch)
tree933304dcec7bc698bf7c0f70fe8938d46c642113 /src/Root.cpp
parent... in this world (diff)
parentNoise3D: Added jungles. (diff)
downloadcuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.gz
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.bz2
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.lz
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.xz
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.zst
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.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 24c1a4cc8..55e1c1156 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -633,6 +633,22 @@ bool cRoot::FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallbac
+bool cRoot::DoWithPlayerByUUID(const AString & a_PlayerUUID, cPlayerListCallback & a_Callback)
+{
+ for (WorldMap::iterator itr = m_WorldsByName.begin(); itr != m_WorldsByName.end();itr++)
+ {
+ if (itr->second->DoWithPlayerByUUID(a_PlayerUUID, a_Callback))
+ {
+ return true;
+ }
+ }
+ return false;
+}
+
+
+
+
+
AString cRoot::GetProtocolVersionTextFromInt(int a_ProtocolVersion)
{
return cProtocolRecognizer::GetVersionTextFromInt(a_ProtocolVersion);