mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-02-04 22:30:16 +01:00
[shutdown] Fix hour detection and tick more often
This commit is contained in:
parent
2d35e19932
commit
6387a54bb7
@ -32,7 +32,7 @@ local function tick()
|
|||||||
local heure = os.date("%H")
|
local heure = os.date("%H")
|
||||||
local minute = os.date("%M")
|
local minute = os.date("%M")
|
||||||
-- Warn every days
|
-- Warn every days
|
||||||
if heure == "4" then
|
if heure == "04" then
|
||||||
if minute == "00" then
|
if minute == "00" then
|
||||||
minetest.chat_send_all("Rappel : Redémarrage journalier du serveur dans 30 minutes. (Dure 30 minutes)")
|
minetest.chat_send_all("Rappel : Redémarrage journalier du serveur dans 30 minutes. (Dure 30 minutes)")
|
||||||
minetest.chat_send_all("Reminder : Daily reboot of the server in 30 minutes. (Lasts 30 minutes)")
|
minetest.chat_send_all("Reminder : Daily reboot of the server in 30 minutes. (Lasts 30 minutes)")
|
||||||
@ -52,7 +52,7 @@ local function tick()
|
|||||||
-- minetest.request_shutdown()
|
-- minetest.request_shutdown()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
minetest.after(60, tick)
|
minetest.after(20, tick)
|
||||||
end
|
end
|
||||||
|
|
||||||
tick()
|
tick()
|
||||||
|
Loading…
Reference in New Issue
Block a user