mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-15 14:50:21 +01:00
First lua script.
This commit is contained in:
parent
d6b4bb6352
commit
01132e786e
11
mods/track_plyers/init.lua
Normal file
11
mods/track_plyers/init.lua
Normal 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)
|
Loading…
Reference in New Issue
Block a user