Working custom server commands

This commit is contained in:
Valentin Barat
2024-03-01 02:12:10 +01:00
parent 5bf966f9cd
commit 5d58465c74
2 changed files with 28 additions and 1 deletions

View File

@@ -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
{
public override int Version { get; set; } = 6;
@@ -54,5 +64,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>();
}
}