diff options
author | madmaxoft <github@xoft.cz> | 2014-02-15 23:16:44 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-02-15 23:17:49 +0100 |
commit | 0f1f7583aeea65335b2ee051585a857b1142a927 (patch) | |
tree | d87a4a6c92ea5f144327d2e88d5bd5845cd668e8 /src/Root.cpp | |
parent | Merge pull request #679 from mc-server/NotchDeath (diff) | |
download | cuberite-0f1f7583aeea65335b2ee051585a857b1142a927.tar cuberite-0f1f7583aeea65335b2ee051585a857b1142a927.tar.gz cuberite-0f1f7583aeea65335b2ee051585a857b1142a927.tar.bz2 cuberite-0f1f7583aeea65335b2ee051585a857b1142a927.tar.lz cuberite-0f1f7583aeea65335b2ee051585a857b1142a927.tar.xz cuberite-0f1f7583aeea65335b2ee051585a857b1142a927.tar.zst cuberite-0f1f7583aeea65335b2ee051585a857b1142a927.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Root.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index 749fbd288..415a26dd3 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -543,7 +543,7 @@ void cRoot::ReloadGroups(void) -void cRoot::LoopWorldsAndBroadcastChat(const AString & a_Message, ChatPrefixCodes a_ChatPrefix) +void cRoot::LoopWorldsAndBroadcastChat(const AString & a_Message, eMessageType a_ChatPrefix) { for (WorldMap::iterator itr = m_WorldsByName.begin(), end = m_WorldsByName.end(); itr != end; ++itr) { @@ -555,6 +555,18 @@ void cRoot::LoopWorldsAndBroadcastChat(const AString & a_Message, ChatPrefixCode +void cRoot::BroadcastChat(const cCompositeChat & a_Message) +{ + for (WorldMap::iterator itr = m_WorldsByName.begin(), end = m_WorldsByName.end(); itr != end; ++itr) + { + itr->second->BroadcastChat(a_Message); + } // for itr - m_WorldsByName[] +} + + + + + bool cRoot::ForEachPlayer(cPlayerListCallback & a_Callback) { for (WorldMap::iterator itr = m_WorldsByName.begin(), itr2 = itr; itr != m_WorldsByName.end(); itr = itr2) |