Stand alone jt modpack
20
shutdown.lua
|
@ -21,10 +21,10 @@ jt_mods = {}
|
|||
--Modified by maikerumine
|
||||
-- Time to shut down server.
|
||||
-- jt_mods is twice a day: at 06:05 and 18:05
|
||||
local H = 18
|
||||
local X = 18
|
||||
local Y = 19
|
||||
local Z = 19
|
||||
local H = 19
|
||||
local X = 19
|
||||
local Y = 20
|
||||
local Z = 20
|
||||
|
||||
local M = 55
|
||||
local N = 00
|
||||
|
@ -42,22 +42,22 @@ minetest.register_globalstep(function(dtime)
|
|||
local t = os.date("*t")
|
||||
if ((t.hour == H or t.hour == X) and (t.min == M) and (t.sec <= 2)
|
||||
and ((D == nil) or (t.wday == D))) then
|
||||
minetest.chat_send_all("Scheduled shutdown. 1900 Eastern Time Zone"
|
||||
minetest.chat_send_all("Scheduled shutdown. 2000 Eastern Time Zone DST 0000 ZULU"
|
||||
.."Shutting down in FIVE minutes. ALL PLAYER FILES WILL RESET")
|
||||
minetest.chat_send_all("STORE YOUR ITEMS WITHIN 4 MINUTES AND LOG OUT TO SAVE YOUR XP!!!!!!!. ".."Shutting down in FIVE minutes.")
|
||||
minetest.chat_send_all("STORE YOUR ITEMS WITHIN 4 MINUTES!. ".."Shutting down in FIVE minutes.")
|
||||
--minetest.after(2, minetest.request_shutdown)
|
||||
end
|
||||
if ((t.hour == Y or t.hour == Z) and (t.min ==N) and (t.sec <= 2)
|
||||
and ((D == nil) or (t.wday == D))) then
|
||||
minetest.chat_send_all("SHUTTING SERVER DOWN NOW!"
|
||||
.." Please come back in a few while map is backed-up.")
|
||||
minetest.chat_send_all("5 SHUTTING SERVER DOWN NOW! Please log off to save you XP!"
|
||||
minetest.chat_send_all("5 SHUTTING SERVER DOWN NOW! "
|
||||
.." Please come back in a few while map is backed--up.")
|
||||
minetest.chat_send_all("4 SHUTTING SERVER DOWN NOW! Please log off to save you XP!"
|
||||
minetest.chat_send_all("4 SHUTTING SERVER DOWN NOW! "
|
||||
.." Please come back in a few while map is backed---up.")
|
||||
minetest.chat_send_all("3 SHUTTING SERVER DOWN NOW! Please log off to save you XP!"
|
||||
minetest.chat_send_all("3 SHUTTING SERVER DOWN NOW! "
|
||||
.." Please come back in a few while map is backed----up.")
|
||||
minetest.chat_send_all("2 SHUTTING SERVER DOWN NOW! Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!"
|
||||
minetest.chat_send_all("2 SHUTTING SERVER DOWN NOW! See you in a few minutes!!"
|
||||
.." Please come back in a few while map is backed-----up.")
|
||||
minetest.chat_send_all("1 SHUTTING SERVER DOWN NOW!"
|
||||
.." Please come back in a few while map is backed------up.")
|
||||
|
|
After Width: | Height: | Size: 585 B |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 297 B |
After Width: | Height: | Size: 689 B |
After Width: | Height: | Size: 457 B |
After Width: | Height: | Size: 178 B |
After Width: | Height: | Size: 233 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 208 B |
After Width: | Height: | Size: 177 B |
After Width: | Height: | Size: 237 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 207 B |
After Width: | Height: | Size: 199 B |
After Width: | Height: | Size: 275 B |
After Width: | Height: | Size: 208 B |
After Width: | Height: | Size: 228 B |
After Width: | Height: | Size: 902 B |
After Width: | Height: | Size: 243 B |
After Width: | Height: | Size: 167 B |
After Width: | Height: | Size: 224 B |
After Width: | Height: | Size: 902 B |
After Width: | Height: | Size: 248 B |
After Width: | Height: | Size: 160 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 890 B |
After Width: | Height: | Size: 224 B |
After Width: | Height: | Size: 156 B |
After Width: | Height: | Size: 168 B |