-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.cs
47 lines (33 loc) · 1.34 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
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("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; } = "";
}
}