- Updated minimum CounterStrikeSharp version to **154**
- Fixed? issue with checking ban status for player with authorization problem
- Added additional checks for immunity
- Added new config variable `BanType` if `1` = `SteamID + IP`, if `0` = `SteamID`
This commit is contained in:
Dawid Bepierszcz
2024-01-24 23:50:49 +01:00
parent b5600d7e73
commit 855f087a7b
5 changed files with 524 additions and 307 deletions

View File

@@ -5,7 +5,7 @@ namespace CS2_SimpleAdmin
{
public class CS2_SimpleAdminConfig : BasePluginConfig
{
public override int Version { get; set; } = 2;
public override int Version { get; set; } = 3;
[JsonPropertyName("DatabaseHost")]
public string DatabaseHost { get; set; } = "";
@@ -23,9 +23,13 @@ namespace CS2_SimpleAdmin
public string DatabaseName { get; set; } = "";
[JsonPropertyName("KickTime")]
public int KickTime { get; set; } = 10;
public int KickTime { get; set; } = 5;
[JsonPropertyName("DisableDangerousCommands")]
public bool DisableDangerousCommands { get; set; } = true;
[JsonPropertyName("BanType")]
public int BanType { get; set; } = 1;
}
}