summaryrefslogtreecommitdiffstats
path: root/source/Root.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-17 23:58:37 +0200
committermadmaxoft <github@xoft.cz>2013-08-17 23:58:37 +0200
commitd287183137a616c9cbb6eb878d2a177fd2cafbd3 (patch)
tree4fc462fc34648b8b7745cd1ac8d5139722911744 /source/Root.cpp
parentThe server Tick thread ticks PluginManager. (diff)
downloadcuberite-d287183137a616c9cbb6eb878d2a177fd2cafbd3.tar
cuberite-d287183137a616c9cbb6eb878d2a177fd2cafbd3.tar.gz
cuberite-d287183137a616c9cbb6eb878d2a177fd2cafbd3.tar.bz2
cuberite-d287183137a616c9cbb6eb878d2a177fd2cafbd3.tar.lz
cuberite-d287183137a616c9cbb6eb878d2a177fd2cafbd3.tar.xz
cuberite-d287183137a616c9cbb6eb878d2a177fd2cafbd3.tar.zst
cuberite-d287183137a616c9cbb6eb878d2a177fd2cafbd3.zip
Diffstat (limited to '')
-rw-r--r--source/Root.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/Root.cpp b/source/Root.cpp
index 07de0775c..d07cc1ee7 100644
--- a/source/Root.cpp
+++ b/source/Root.cpp
@@ -478,6 +478,18 @@ void cRoot::SaveAllChunks(void)
+void cRoot::BroadcastChat(const AString & 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)