mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-07 11:00:23 +01:00
8b9670a24b
Smalls another fixe
12 lines
493 B
Lua
12 lines
493 B
Lua
local TIMER = 0
|
|
minetest.register_globalstep(function(dtime)
|
|
TIMER = TIMER + dtime
|
|
if TIMER < 25 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 communiquer avec les autres joueurs sur ce serveur, tu dois lire les règles de l'irc et les accepter. Tape /irc.")
|
|
end
|
|
end
|
|
end) |