mtsatellite/mods/track_players/init.lua
2015-03-09 11:55:59 +01:00

12 lines
343 B
Lua

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)