Skip to content

Commit

Permalink
1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
oqyh authored Apr 30, 2024
1 parent 90c541b commit a319ae8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Config/Configs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public class ConfigData
public bool KS_BodyHitSoundDefaultValue { get; set; }
public string KS_InGameMenu { get; set; }
public string KS_OnlyAllowTheseGroupsToToggle { get; set; }
public int KS_AutoRemovePlayerCookieOlderThanXDays { get; set; }
public string empty3 { get; set; }
public string Information_For_You_Dont_Delete_it { get; set; }

Expand All @@ -137,6 +138,7 @@ public ConfigData()
KS_BodyHitSoundDefaultValue = false;
KS_InGameMenu = "!quake,!quakesounds,!soundmenu,!soundsmenu,!menusound,!menusounds,!soundsettings,!soundsetting";
KS_OnlyAllowTheseGroupsToToggle = "";
KS_AutoRemovePlayerCookieOlderThanXDays = 7;
empty3 = "-----------------------------------------------------------------------------------";
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";
}
Expand Down
4 changes: 2 additions & 2 deletions Config/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public static void SaveToJsonFile(ulong PlayerSteamID, bool freezemenu, bool hea
}


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



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


if (targetPerson != null && (DateTime.Now - targetPerson.DateAndTime<= TimeSpan.FromDays(100)))
if (targetPerson != null && (DateTime.Now - targetPerson.DateAndTime<= TimeSpan.FromDays(Configs.GetConfigData().KS_AutoRemovePlayerCookieOlderThanXDays)))
{
return targetPerson;
}
Expand Down
2 changes: 1 addition & 1 deletion Kill-Sound-GoldKingZ.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Kill_Sound_GoldKingZ;
public class KillSoundGoldKingZ : BasePlugin
{
public override string ModuleName => "Kill Sound ( Kill , HeadShot , Quake )";
public override string ModuleVersion => "1.0.7";
public override string ModuleVersion => "1.0.8";
public override string ModuleAuthor => "Gold KingZ";
public override string ModuleDescription => "https://github.com/oqyh";
internal static IStringLocalizer? Stringlocalizer;
Expand Down

0 comments on commit a319ae8

Please sign in to comment.