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

@ -37,6 +37,8 @@ $Host::ClassicChatLogPath = "logs/Chat/";
$Host::ClassicConnectLog = 1;
$Host::ClassicConnLogPath = "logs/Connect/Connect.log";
$Host::ClassicCycleMisTypes = 0;
$Host::ClassicDailyHardRestart = 0;
$Host::ClassicDailyHardRestartTime = "10\t00\tam";
$Host::ClassicEchoChat = 0;
$Host::ClassicEvoStats = 1;
$Host::ClassicFairTeams = 1;

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 )

View file

@ -205,6 +205,8 @@ $Host::VoteCooldown = 120; //Time cooldown that dosnt allow a play
$Host::VoteDelayTime = 120; //Delay the ability to vote (For everyone) at the beginning of the match (120 is 2 minutes)
$Host::ClassicTeamKillLog = 1; //Enable/Disable Teamkill Logging
$Host::ClassicTeamKillLogPath = "logs/TeamKills/teamkills.log"; //TeamKill Log Path
$Host::ClassicDailyHardRestart = 0; //Enable/Disable Daily Hard Restart
$Host::ClassicDailyHardRestartTime = "10\t00\tam"; //Hard Restart Server Time Ex:10am
//LakRabbit
$Host::LakRabbitUnlimitedDJ = 1; //Unlimited disc-jumps if enabled