test
This commit is contained in:
Dawid Bepierszcz
2024-02-12 13:00:38 +01:00
parent 6a182fff9d
commit bda704e843
21 changed files with 3012 additions and 2663 deletions

View File

@@ -3,9 +3,17 @@ using System.Text.Json.Serialization;
namespace CS2_SimpleAdmin
{
public class Discord
{
[JsonPropertyName("DiscordLogWebhook")]
public string DiscordLogWebhook { get; set; } = "";
[JsonPropertyName("DiscordPenaltyWebhook")]
public string DiscordPenaltyWebhook { get; set; } = "";
}
public class CS2_SimpleAdminConfig : BasePluginConfig
{
public override int Version { get; set; } = 5;
public override int Version { get; set; } = 6;
[JsonPropertyName("DatabaseHost")]
public string DatabaseHost { get; set; } = "";
@@ -34,7 +42,7 @@ namespace CS2_SimpleAdmin
[JsonPropertyName("TeamSwitchType")]
public int TeamSwitchType { get; set; } = 1;
[JsonPropertyName("DiscordWebhook")]
public string DiscordWebhook { get; set; } = "";
[JsonPropertyName("Discord")]
public Discord Discord { get; set; } = new Discord();
}
}