summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2014-11-02 21:01:23 +0100
committerLukas Pioch <lukas@zgow.de>2014-11-02 21:01:23 +0100
commit9f71a4e7aec04c4c7fa57ac4b82f27a21044f798 (patch)
tree25761b6d78453e356cab4debd1db8348e50c0a7c /src/Root.cpp
parentMerge pull request #1569 from mc-server/GrownBiomes (diff)
downloadcuberite-9f71a4e7aec04c4c7fa57ac4b82f27a21044f798.tar
cuberite-9f71a4e7aec04c4c7fa57ac4b82f27a21044f798.tar.gz
cuberite-9f71a4e7aec04c4c7fa57ac4b82f27a21044f798.tar.bz2
cuberite-9f71a4e7aec04c4c7fa57ac4b82f27a21044f798.tar.lz
cuberite-9f71a4e7aec04c4c7fa57ac4b82f27a21044f798.tar.xz
cuberite-9f71a4e7aec04c4c7fa57ac4b82f27a21044f798.tar.zst
cuberite-9f71a4e7aec04c4c7fa57ac4b82f27a21044f798.zip
Diffstat (limited to '')
-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..539284665 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -633,6 +633,22 @@ bool cRoot::FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallbac
+bool cRoot::FindAndDoWithUUID(const AString & a_PlayerUUID, cPlayerListCallback & a_Callback)
+{
+ for (WorldMap::iterator itr = m_WorldsByName.begin(); itr != m_WorldsByName.end();itr++)
+ {
+ if (itr->second->FindAndDoWithUUID(a_PlayerUUID, a_Callback))
+ {
+ return true;
+ }
+ }
+ return false;
+}
+
+
+
+
+
AString cRoot::GetProtocolVersionTextFromInt(int a_ProtocolVersion)
{
return cProtocolRecognizer::GetVersionTextFromInt(a_ProtocolVersion);