-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConfig.cs
52 lines (34 loc) · 1.5 KB
/
Config.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System.Text.Json.Serialization;
using CounterStrikeSharp.API.Core;
namespace SteamGroupRestrict;
public class GeneralSettings
{
[JsonPropertyName("SteamGroupId")]
public string SteamGroupId { get; set; } = "";
[JsonPropertyName("SteamApiKey")]
public string SteamApiKey { get; set; } = "";
[JsonPropertyName("Prefix")]
public string Prefix { get; set; } = "{Blue}[SGR]";
[JsonPropertyName("CheckCommand")]
public string CheckCommand { get; set; } = "group_check";
}
public class Messages
{
[JsonPropertyName("Unauthorized")]
public string Unauthorized { get; set; } = "{Red}You must have joined our steam group to use this command.";
[JsonPropertyName("NotJoinedGroup")]
public string NotJoinedGroup { get; set; } = "{Red}You don't seem to have joined our Steam group.";
[JsonPropertyName("JoinedGroup")]
public string JoinedGroup { get; set; } = "{Green}Congratulations! You have joined our Steam group and can start using commands.";
}
public class Config : IBasePluginConfig
{
[JsonPropertyName("GeneralSettings")]
public GeneralSettings GeneralSettings { get; set; } = new GeneralSettings();
[JsonPropertyName("Messages")]
public Messages Messages { get; set; } = new Messages();
[JsonPropertyName("BlockedCommands")]
public List<string> BlockedCommands { get; set; } = new List<string>();
[JsonPropertyName("ConfigVersion")]
public int Version { get; set; } = 1;
}