forked from mff/shutdown
Redémarrage du serveur à 5h00
This commit is contained in:
parent
2621e87365
commit
b7958bec72
10
init.lua
10
init.lua
@ -42,20 +42,20 @@ local function tick()
|
||||
local heure = os.date("%H")
|
||||
local minute = os.date("%M")
|
||||
-- Warn every days
|
||||
if heure == "06" then
|
||||
if minute == "00" then
|
||||
if heure == "04" then
|
||||
if minute == "30" then
|
||||
send("Rappel : Redémarrage journalier du serveur dans 30 minutes. (Dure 30 minutes)", "#ffff00")
|
||||
send("Reminder : Daily reboot of the server in 30 minutes. (Lasts 30 minutes)", "#ffff00")
|
||||
sound_play_all("shutdown_shutdown")
|
||||
elseif minute == "15" then
|
||||
elseif minute == "45" then
|
||||
send("Rappel : Redémarrage journalier du serveur dans 15 minutes. (Dure 30 minutes)", "#FF6600")
|
||||
send("Reminder : Daily reboot of the server in 15 minutes. (Lasts 30 minutes)", "#FF6600")
|
||||
sound_play_all("shutdown_shutdown")
|
||||
elseif minute == "25" then
|
||||
elseif minute == "55" then
|
||||
send("Rappel : Redémarrage journalier du serveur dans 5 minutes - Pensez à vous deconnecter !", "#ff0000")
|
||||
send("Reminder : Daily reboot of the server in 5 minutes - Prepare to log out!", "#ff0000")
|
||||
sound_play_all("shutdown_shutdown")
|
||||
elseif minute == "29" then
|
||||
elseif minute == "59" then
|
||||
send("=== ARRET DU SERVEUR - DE NOUVEAU EN LIGNE DANS 30 MIN ===", "#ff0000")
|
||||
send("=== SERVER SHUTTING DOWN - ONLINE AGAIN IN 30 MIN ===", "#ff0000")
|
||||
sound_play_all("shutdown_shutdown")
|
||||
|
Loading…
Reference in New Issue
Block a user