mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 10:43:23 +00:00
13
Config.cs
13
Config.cs
@@ -12,6 +12,16 @@ namespace CS2_SimpleAdmin
|
||||
public string DiscordPenaltyWebhook { get; set; } = "";
|
||||
}
|
||||
|
||||
public class CustomServerCommandData
|
||||
{
|
||||
[JsonPropertyName("Flag")]
|
||||
public string Flag { get; set; } = "@css/generic";
|
||||
[JsonPropertyName("DisplayName")]
|
||||
public string DisplayName { get; set; } = "";
|
||||
[JsonPropertyName("Command")]
|
||||
public string Command { get; set; } = "";
|
||||
}
|
||||
|
||||
public class CS2_SimpleAdminConfig : BasePluginConfig
|
||||
{
|
||||
[JsonPropertyName("ConfigVersion")] public override int Version { get; set; } = 7;
|
||||
@@ -57,5 +67,8 @@ namespace CS2_SimpleAdmin
|
||||
|
||||
[JsonPropertyName("WorkshopMaps")]
|
||||
public List<string> WorkshopMaps { get; set; } = new List<string>();
|
||||
|
||||
[JsonPropertyName("CustomServerCommands")]
|
||||
public List<CustomServerCommandData> CustomServerCommands { get; set; } = new List<CustomServerCommandData>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user