diff --git a/mods/track_plyers/init.lua b/mods/track_plyers/init.lua new file mode 100644 index 0000000..e131134 --- /dev/null +++ b/mods/track_plyers/init.lua @@ -0,0 +1,11 @@ +local time_interval = 1.0 + +function time_interval_func() + for _, player in ipairs(minetest.get_connected_players()) do + local name = player:get_player_name() + minetest.chat_send_player(name, "Hello " .. name) + end + minetest.after(time_interval, time_interval_func) +end + +minetest.after(time_interval, time_interval_func)