From d287183137a616c9cbb6eb878d2a177fd2cafbd3 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sat, 17 Aug 2013 23:58:37 +0200 Subject: Added cRoot:BroadcastChat() to the Lua API. This allows plugins to broadcast a chat message to all connected players. It is a replacement for previously removed cServer:BroadcastChat(). --- source/Root.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/Root.h') diff --git a/source/Root.h b/source/Root.h index 262c9b0e5..194b1cbb5 100644 --- a/source/Root.h +++ b/source/Root.h @@ -95,6 +95,9 @@ public: /// Saves all chunks in all worlds void SaveAllChunks(void); // tolua_export + /// Sends a chat message to all connected clients (in all worlds) + void BroadcastChat(const AString & a_Message); // tolua_export + /// Calls the callback for each player in all worlds bool ForEachPlayer(cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS << -- cgit v1.2.3