Integrated Hard Restart

Configurable in serverPrefs
Off by default
This commit is contained in:
ChocoTaco 2021-09-14 17:27:10 -04:00
parent e6af4d968b
commit c5c670eca4
3 changed files with 6 additions and 2 deletions

View file

@ -241,8 +241,8 @@ function CreateServer(%mission, %missionType)
// Auto Daily Hard Server Restart at a specific time
// getTimeDif from zDarkTigerStats.cs
if($dtStats::version)
schedule(getTimeDif("10\t00\tam"),0,"quit"); //10AM server time
if($dtStats::version && $Host::ClassicDailyHardRestart)
schedule(getTimeDif($Host::ClassicDailyHardRestartTime),0,"quit");
}
function initGameBots( %mission, %mType )