[shutdown] Fix hour detection and tick more often

This commit is contained in:
LeMagnesium 2016-06-15 03:52:35 +02:00
parent 2d35e19932
commit 6387a54bb7
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ local function tick()
local heure = os.date("%H")
local minute = os.date("%M")
-- Warn every days
if heure == "4" then
if heure == "04" 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("Reminder : Daily reboot of the server in 30 minutes. (Lasts 30 minutes)")
@ -52,7 +52,7 @@ local function tick()
-- minetest.request_shutdown()
end
end
minetest.after(60, tick)
minetest.after(20, tick)
end
tick()