1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-28 07:20:33 +02:00

Enable shutdown mod with correct hours

This commit is contained in:
LeMagnesium 2015-07-26 15:24:12 +02:00
parent f9f98e3a9c
commit 7e856c7356

View File

@ -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)