summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-09 04:35:22 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-09 04:35:22 -0300
commitc0c859210e5b3583a93db9d9f3408e956c3cf58f (patch)
tree4f04e8b5ee11557d549dbfbc2385ad450e5f212c /npc
parente0341e8b942f778c0c211f0b961d795f1fb7521d (diff)
downloadserverdata-c0c859210e5b3583a93db9d9f3408e956c3cf58f.tar.gz
serverdata-c0c859210e5b3583a93db9d9f3408e956c3cf58f.tar.bz2
serverdata-c0c859210e5b3583a93db9d9f3408e956c3cf58f.tar.xz
serverdata-c0c859210e5b3583a93db9d9f3408e956c3cf58f.zip
Fix infinite restart typo
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/super-menu.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt
index bf3923c92..ba01743b3 100644
--- a/npc/commands/super-menu.txt
+++ b/npc/commands/super-menu.txt
@@ -219,8 +219,10 @@ function script SchedRestart {
if ($SCHED_RESTART == 1)
$SCHED_RESTART=gettimetick(2)+900;
- if ($SCHED_RESTART > gettimetick(2))
+ if ($SCHED_RESTART > gettimetick(2)) {
+ $SCHED_RESTART=0;
atcommand("@serverexit 101");
+ }
kamibroadcast("A restart has been scheduled to about %s.", FuzzyTime($SCHED_RESTART));
}