1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-06 18:40:25 +01:00
server-nalc/mods/_misc/nointeract_messages.lua
Ombridride 232b274c55 initial commit
subgame + mods
2014-10-28 18:01:32 +01:00

13 lines
488 B
Lua
Executable File

local TIMER = 0
minetest.register_globalstep(function(dtime)
TIMER = TIMER + dtime
if TIMER < 20 then return end
TIMER = 0
for _,player in ipairs(minetest.get_connected_players()) do
local name = player:get_player_name()
if not minetest.check_player_privs(name, {interact=true}) then
minetest.chat_send_player(name, "Hey " .. name .. " ! Pour pouvoir construire et intéragir sur ce serveur, tu dois lire les règles du serveur et les accepter. Tapez /rules.")
end
end
end)