diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-09 04:35:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-09 04:35:22 -0300 |
commit | c0c859210e5b3583a93db9d9f3408e956c3cf58f (patch) | |
tree | 4f04e8b5ee11557d549dbfbc2385ad450e5f212c | |
parent | e0341e8b942f778c0c211f0b961d795f1fb7521d (diff) | |
download | serverdata-c0c859210e5b3583a93db9d9f3408e956c3cf58f.tar.gz serverdata-c0c859210e5b3583a93db9d9f3408e956c3cf58f.tar.bz2 serverdata-c0c859210e5b3583a93db9d9f3408e956c3cf58f.tar.xz serverdata-c0c859210e5b3583a93db9d9f3408e956c3cf58f.zip |
Fix infinite restart typo
-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)); } |