diff --git a/mods/shutdown/init.lua b/mods/shutdown/init.lua index de5a979d..01f00f29 100755 --- a/mods/shutdown/init.lua +++ b/mods/shutdown/init.lua @@ -25,18 +25,19 @@ minetest.register_globalstep(function(dtime) -- Warn only on monday, thursday, and saturday if jour ~= 1 and jour~= 4 and jour ~= 6 then return end - if heure == "2" and minute == "25" then --modifier ici à vos besoin + if heure == "4" and minute == "00" then --modifier ici à vos besoin minetest.chat_send_all("Rappel, arret du serveur pour sauvegarde dans 30min.") minetest.chat_send_all("Attention, server will shutdown in 30 minutes for backup.") - elseif heure == "2" and minute == "40" then --modifier ici à vos besoin + elseif heure == "4" and minute == "15" then --modifier ici à vos besoin minetest.chat_send_all("Rappel, arret du serveur pour sauvegarde dans 15min.") minetest.chat_send_all("Attention, server will shutdown in 15 minutes for backup.") - elseif heure == "2" and minute == "50" then --modifier ici à vos besoin + elseif heure == "4" and minute == "25" then --modifier ici à vos besoin minetest.chat_send_all("Rappel, arret du serveur pour sauvegarde dans 5min --- Veuillez vous deconnecter!!!") minetest.chat_send_all("Attention, server will shutdown in 5 minutes for backup --- Please logout!!!") - elseif heure == "2" and minute == "54" then --modifier ici à vos besoin + elseif heure == "4" and minute == "29" then --modifier ici à vos besoin minetest.chat_send_all("=== ARRET DU SERVEUR ===") minetest.chat_send_all("=== SERVER SHUTTING DOWN ===") + minetest.request_shutdown() end end)