Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Commit a319ae8

Browse files
authored
1.0.8
1 parent 90c541b commit a319ae8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Config/Configs.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public class ConfigData
112112
public bool KS_BodyHitSoundDefaultValue { get; set; }
113113
public string KS_InGameMenu { get; set; }
114114
public string KS_OnlyAllowTheseGroupsToToggle { get; set; }
115+
public int KS_AutoRemovePlayerCookieOlderThanXDays { get; set; }
115116
public string empty3 { get; set; }
116117
public string Information_For_You_Dont_Delete_it { get; set; }
117118

@@ -137,6 +138,7 @@ public ConfigData()
137138
KS_BodyHitSoundDefaultValue = false;
138139
KS_InGameMenu = "!quake,!quakesounds,!soundmenu,!soundsmenu,!menusound,!menusounds,!soundsettings,!soundsetting";
139140
KS_OnlyAllowTheseGroupsToToggle = "";
141+
KS_AutoRemovePlayerCookieOlderThanXDays = 7;
140142
empty3 = "-----------------------------------------------------------------------------------";
141143
Information_For_You_Dont_Delete_it = " Vist [https://github.com/oqyh/cs2-Kill-Sound-GoldKingZ/tree/main?tab=readme-ov-file#-configuration-] To Understand All Above";
142144
}

Config/Helper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ public static void SaveToJsonFile(ulong PlayerSteamID, bool freezemenu, bool hea
440440
}
441441

442442

443-
allPersonsData.RemoveAll(p => (DateTime.Now - p.DateAndTime).TotalDays > 100);
443+
allPersonsData.RemoveAll(p => (DateTime.Now - p.DateAndTime).TotalDays > Configs.GetConfigData().KS_AutoRemovePlayerCookieOlderThanXDays);
444444

445445

446446

@@ -474,7 +474,7 @@ public static PersonData RetrievePersonDataById(ulong targetId)
474474
PersonData targetPerson = allPersonsData.Find(p => p.PlayerSteamID == targetId)!;
475475

476476

477-
if (targetPerson != null && (DateTime.Now - targetPerson.DateAndTime<= TimeSpan.FromDays(100)))
477+
if (targetPerson != null && (DateTime.Now - targetPerson.DateAndTime<= TimeSpan.FromDays(Configs.GetConfigData().KS_AutoRemovePlayerCookieOlderThanXDays)))
478478
{
479479
return targetPerson;
480480
}

Kill-Sound-GoldKingZ.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Kill_Sound_GoldKingZ;
1717
public class KillSoundGoldKingZ : BasePlugin
1818
{
1919
public override string ModuleName => "Kill Sound ( Kill , HeadShot , Quake )";
20-
public override string ModuleVersion => "1.0.7";
20+
public override string ModuleVersion => "1.0.8";
2121
public override string ModuleAuthor => "Gold KingZ";
2222
public override string ModuleDescription => "https://github.com/oqyh";
2323
internal static IStringLocalizer? Stringlocalizer;

0 commit comments

Comments
 (0)