diff options
author | b33duck <b33duck@gmail.com> | 2015-05-28 22:17:21 +0200 |
---|---|---|
committer | b33duck <b33duck@gmail.com> | 2015-05-28 22:17:21 +0200 |
commit | c8b1778847fca653c5f9cde610d25586131698ac (patch) | |
tree | 65b8979820ef68bb34cadbe4e6301ef142227d4b /src/Root.cpp | |
parent | Updated DumpInfo plugin. (diff) | |
download | cuberite-c8b1778847fca653c5f9cde610d25586131698ac.tar cuberite-c8b1778847fca653c5f9cde610d25586131698ac.tar.gz cuberite-c8b1778847fca653c5f9cde610d25586131698ac.tar.bz2 cuberite-c8b1778847fca653c5f9cde610d25586131698ac.tar.lz cuberite-c8b1778847fca653c5f9cde610d25586131698ac.tar.xz cuberite-c8b1778847fca653c5f9cde610d25586131698ac.tar.zst cuberite-c8b1778847fca653c5f9cde610d25586131698ac.zip |
Diffstat (limited to 'src/Root.cpp')
-rw-r--r-- | src/Root.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index b28e7c894..b60f6ae3a 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -558,6 +558,14 @@ void cRoot::SaveAllChunks(void) +void cRoot::SendPlayerLists(cPlayer * a_DestPlayer) +{ + for (WorldMap::iterator itr = m_WorldsByName.begin(), end = m_WorldsByName.end(); itr != end; ++itr) + { + itr->second->SendPlayerList(a_DestPlayer); + } // for itr - m_WorldsByName[] +} + void cRoot::BroadcastChat(const AString & a_Message, eMessageType a_ChatPrefix) @@ -582,8 +590,6 @@ void cRoot::BroadcastChat(const cCompositeChat & a_Message) - - bool cRoot::ForEachPlayer(cPlayerListCallback & a_Callback) { for (WorldMap::iterator itr = m_WorldsByName.begin(), itr2 = itr; itr != m_WorldsByName.end(); itr = itr2) |