From d8d3411b712fbfb06b8ee3623d913587fac94dfe Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Tue, 1 Dec 2020 16:43:18 -0500 Subject: [PATCH] Changed to days, dtBanlist $Host var --- Classic/scripts/autoexec/{dtBan.cs => dtBanSystem.cs} | 8 +++++--- Classic/scripts/serverDefaults.cs | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) rename Classic/scripts/autoexec/{dtBan.cs => dtBanSystem.cs} (94%) diff --git a/Classic/scripts/autoexec/dtBan.cs b/Classic/scripts/autoexec/dtBanSystem.cs similarity index 94% rename from Classic/scripts/autoexec/dtBan.cs rename to Classic/scripts/autoexec/dtBanSystem.cs index 6ddc7bb..7cd501a 100644 --- a/Classic/scripts/autoexec/dtBan.cs +++ b/Classic/scripts/autoexec/dtBanSystem.cs @@ -3,8 +3,10 @@ //year year banned 2020 //365 How long to ban (1 year) -if(isFile("prefs/dtBanlist.cs")) - exec("prefs/dtBanlist.cs"); +//$Host::dtBanlist = "prefs/dtBanlist.cs"; + +if(isFile($Host::dtBanlist)) + exec($Host::dtBanlist); package dtBan{ function BanList::add(%guid, %ipAddress, %days){ @@ -22,7 +24,7 @@ package dtBan{ } // write out the updated bans to the file - export("$dtBanList*", "prefs/dtBanlist.cs"); + export("$dtBanList*", $Host::dtBanlist); } function banList_checkIP(%client){ %ip = %client.getAddress(); diff --git a/Classic/scripts/serverDefaults.cs b/Classic/scripts/serverDefaults.cs index 73ed582..424f674 100644 --- a/Classic/scripts/serverDefaults.cs +++ b/Classic/scripts/serverDefaults.cs @@ -95,8 +95,8 @@ $Host::MaxBotDifficulty = 0.75; $Host::NoSmurfs = 1; $Host::VoteTime = 30; // amount of time before votes are calculated $Host::VotePassPercent = 60; // percent needed to pass a vote -$Host::KickBanTime = 300; // specified in seconds -$Host::BanTime = 1800; // specified in seconds +$Host::KickBanTime = 1; // specified in days +$Host::BanTime = 365; // specified in days $Host::PlayerRespawnTimeout = 60; // time before a dead player is forced into observer mode $Host::warmupTime = 20; $Host::TournamentMode = 0; @@ -153,7 +153,6 @@ $Host::LoadScreenMOTD1 = "Blaster is here to stay!"; //MOTD or Events Lin $Host::LoadScreenMOTD2 = "Come play Arena on Wednesday Nights!"; //MOTD or Events Line 2 Message (Debrief LoadScreen Only) $Host::LoadScreenMOTD3 = "Lak crowd early evenings after work during the week."; //MOTD or Events Line 3 Message (Debrief LoadScreen Only) $Host::LoadScreenMOTD4 = "Big CTF games Fridays, Saturdays, and Sundays!"; //MOTD or Events Line 4 Message (Debrief LoadScreen Only) -$Host::ClassicBanlist = "prefs/banlist.cs"; $Host::ClassicAdminLog = 1; $Host::ClassicAdminLogPath = "logs/Admin/log.txt"; $Host::ClassicChatLog = 1; @@ -199,6 +198,8 @@ $Host::TKWarn1 = 4; //Max tks before 1st warning $Host::TKWarn2 = 8; //Max tks before 2nd warning $Host::KickObserverStartOnJoin = 0; //Start KickObserver Timer as soon as player joins server $Host::KickObserverTimeout = 1200; //How long player can stay in observer before being booted (1200 is 20 mins) +//$Host::ClassicBanlist = "prefs/banlist.cs"; +$Host::dtBanlist = "prefs/dtBanlist.cs"; //Alternate Ban System //LakRabbit $Host::LakRabbitUnlimitedDJ = 1; //Unlimited disc-jumps if enabled