From c5c670eca45efce57c65e41140122994e130c47f Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Tue, 14 Sep 2021 17:27:10 -0400 Subject: [PATCH] Integrated Hard Restart Configurable in serverPrefs Off by default --- Classic/prefs/serverPrefs.cs | 2 ++ Classic/scripts/server.cs | 4 ++-- Classic/scripts/serverDefaults.cs | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Classic/prefs/serverPrefs.cs b/Classic/prefs/serverPrefs.cs index 975d180..933cfc7 100644 --- a/Classic/prefs/serverPrefs.cs +++ b/Classic/prefs/serverPrefs.cs @@ -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; diff --git a/Classic/scripts/server.cs b/Classic/scripts/server.cs index 113a6b4..077ee19 100755 --- a/Classic/scripts/server.cs +++ b/Classic/scripts/server.cs @@ -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 ) diff --git a/Classic/scripts/serverDefaults.cs b/Classic/scripts/serverDefaults.cs index 1885902..0f70f80 100755 --- a/Classic/scripts/serverDefaults.cs +++ b/Classic/scripts/serverDefaults.cs @@ -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