Implemented per-world broadcasting function in Lua.