Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
774e9c4413 | |||
|
3b323e3d04 | ||
|
b7958bec72 |
@ -1 +0,0 @@
|
|||||||
soundset?
|
|
12
init.lua
12
init.lua
@ -42,20 +42,20 @@ local function tick()
|
|||||||
local heure = os.date("%H")
|
local heure = os.date("%H")
|
||||||
local minute = os.date("%M")
|
local minute = os.date("%M")
|
||||||
-- Warn every days
|
-- Warn every days
|
||||||
if heure == "06" then
|
if heure == "04" then
|
||||||
if minute == "00" then
|
if minute == "30" then
|
||||||
send("Rappel : Redémarrage journalier du serveur dans 30 minutes. (Dure 30 minutes)", "#ffff00")
|
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")
|
send("Reminder : Daily reboot of the server in 30 minutes. (Lasts 30 minutes)", "#ffff00")
|
||||||
sound_play_all("shutdown_shutdown")
|
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("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")
|
send("Reminder : Daily reboot of the server in 15 minutes. (Lasts 30 minutes)", "#FF6600")
|
||||||
sound_play_all("shutdown_shutdown")
|
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("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")
|
send("Reminder : Daily reboot of the server in 5 minutes - Prepare to log out!", "#ff0000")
|
||||||
sound_play_all("shutdown_shutdown")
|
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("=== ARRET DU SERVEUR - DE NOUVEAU EN LIGNE DANS 30 MIN ===", "#ff0000")
|
||||||
send("=== SERVER SHUTTING DOWN - ONLINE AGAIN IN 30 MIN ===", "#ff0000")
|
send("=== SERVER SHUTTING DOWN - ONLINE AGAIN IN 30 MIN ===", "#ff0000")
|
||||||
sound_play_all("shutdown_shutdown")
|
sound_play_all("shutdown_shutdown")
|
||||||
@ -71,3 +71,5 @@ minetest.after(0, function() -- When server has just started
|
|||||||
tick()
|
tick()
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
minetest.log("action", "[shutdown] loaded.")
|
||||||
|
Loading…
Reference in New Issue
Block a user