summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-12 09:01:53 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-12 09:01:53 -0300
commit16a6d9ced9c7b3f06534df945985836b0bd97eb8 (patch)
tree3ef5b24a7fa1a1b94263e4cfca9d874bbd99540d /npc/commands
parent8ca3e6053c4880c93c50ca1411fa2eb023bd7d59 (diff)
downloadserverdata-16a6d9ced9c7b3f06534df945985836b0bd97eb8.tar.gz
serverdata-16a6d9ced9c7b3f06534df945985836b0bd97eb8.tar.bz2
serverdata-16a6d9ced9c7b3f06534df945985836b0bd97eb8.tar.xz
serverdata-16a6d9ced9c7b3f06534df945985836b0bd97eb8.zip
Servers with `debug` flag will also restart on their own every sunday at 03:00
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/super-menu.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt
index 11a92711f..9dfe29a3a 100644
--- a/npc/commands/super-menu.txt
+++ b/npc/commands/super-menu.txt
@@ -68,4 +68,21 @@ OnCall:
OnInit:
bindatcmd "super", "@super::OnCall", 80, 99, 0;
//bindatcmd "numa", "@super::OnCall", 80, 99, 0; // alias for those used to TMW's @numa - none at the moment, iirc
+ end;
+
+// Servers with "debug" set are debug servers which must reset on their own
+OnSun0250:
+ if (debug) kamibroadcast("WARNING: Test Server will go down for scheduled maintenance in 10 minutes!");
+ end;
+OnSun0255:
+ if (debug) kamibroadcast("WARNING: Test Server will go down for scheduled maintenance in 5 minutes!");
+ end;
+OnSun0259:
+ if (debug) kamibroadcast("WARNING: Imminent Test Server restart!");
+ end;
+OnSun0300:
+ if (debug) atcommand("@serverexit 103");
+ end;
+
}
+