Merge pull request #67 from Dliix66/main

Added custom server commands
This commit is contained in:
Dawid Bepierszcz 2024-03-02 22:14:14 +01:00 • committed by GitHub
commit 7d5166cf4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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
{
[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>();
}
}