Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

3 changed files with 6 additions and 10 deletions

1
depends.txt Executable file
View File

@ -0,0 +1 @@
soundset?

View File

@ -42,20 +42,20 @@ local function tick()
local heure = os.date("%H")
local minute = os.date("%M")
-- Warn every days
if heure == "04" then
if minute == "30" then
if heure == "06" then
if minute == "00" 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 == "45" then
elseif minute == "15" 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 == "55" then
elseif minute == "25" 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 == "59" then
elseif minute == "29" 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")
@ -71,5 +71,3 @@ minetest.after(0, function() -- When server has just started
tick()
end)
end)
minetest.log("action", "[shutdown] loaded.")

View File

@ -1,3 +0,0 @@
name = shutdown
description = Shutdown your server at a precise hour.
optional_depends = soundset