mirror of
https://github.com/dragonfireclient/dragonfireclient.git
synced 2024-11-23 19:24:01 -05:00
14 lines
467 B
Lua
14 lines
467 B
Lua
--
|
|
-- Mod channels experimental handlers
|
|
--
|
|
local mod_channel = minetest.mod_channel_join("experimental_preview")
|
|
|
|
minetest.register_on_modchannel_message(function(channel, sender, message)
|
|
minetest.log("action", "[modchannels] Server received message `" .. message
|
|
.. "` on channel `" .. channel .. "` from sender `" .. sender .. "`")
|
|
|
|
if mod_channel:is_writeable() then
|
|
mod_channel:send_all("experimental answers to preview")
|
|
mod_channel:leave()
|
|
end
|
|
end)
|