diff options
-rw-r--r-- | npc/commands/super-menu.txt | 4 |
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)); } |