-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.cs
58 lines (42 loc) · 1.72 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
53
54
55
56
57
58
namespace GameCMS
{
using System.Text.Json.Serialization;
using CounterStrikeSharp.API.Core;
public class GameCMSConfig : BasePluginConfig
{
[JsonPropertyName("ServerApiKey")]
public string ServerApiKey { get; set; } = "Your Server API KEY";
[JsonPropertyName("WebsiteApiKey")]
public string WebsiteApiKey { get; set; } = "Your website API KEY";
[JsonPropertyName("ServerHttpPort")]
public int ServerHttpPort { get; set; } = 27017;
[JsonPropertyName("FaceitToken")]
public string FaceitToken { get; set; } = "";
[JsonPropertyName("DeleteExpiredAdmins")]
public bool DeleteExpiredAdmins { get; set; } = true;
[JsonPropertyName("services")]
public ServicesConfig services { get; set; } = new ServicesConfig();
[JsonPropertyName("database")]
public DatabaseConfig database { get; set; } = new DatabaseConfig();
}
public sealed class DatabaseConfig
{
[JsonPropertyName("host")]
public string host { get; set; } = "localhost";
[JsonPropertyName("port")]
public uint port { get; set; } = 3306;
[JsonPropertyName("name")]
public string name { get; set; } = "";
[JsonPropertyName("username")]
public string username { get; set; } = "";
[JsonPropertyName("password")]
public string password { get; set; } = "";
}
public sealed class ServicesConfig
{
[JsonPropertyName("playing-time")]
public bool PlayingTime { get; set; } = true;
[JsonPropertyName("server-data-collection")]
public bool ServerDataCollection { get; set; } = true;
}
}