First lua script.

This commit is contained in:
Sascha L. Teichmann 2015-03-09 11:49:55 +01:00
parent d6b4bb6352
commit 01132e786e

View File

@ -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)