2
0

init.lua 467 B

1234567891011121314
  1. --
  2. -- Mod channels experimental handlers
  3. --
  4. local mod_channel = minetest.mod_channel_join("experimental_preview")
  5. minetest.register_on_modchannel_message(function(channel, sender, message)
  6. minetest.log("action", "[modchannels] Server received message `" .. message
  7. .. "` on channel `" .. channel .. "` from sender `" .. sender .. "`")
  8. if mod_channel:is_writeable() then
  9. mod_channel:send_all("experimental answers to preview")
  10. mod_channel:leave()
  11. end
  12. end)