-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathConfig.cs
More file actions
138 lines (120 loc) · 7.44 KB
/
Config.cs
File metadata and controls
138 lines (120 loc) · 7.44 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
using CounterStrikeSharp.API;
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Modules.Utils;
using System.Text.Json.Serialization;
namespace CustomPlugin;
public class ConfigBan : BasePluginConfig
{
[JsonPropertyName("Token")] public string Token { get; set; } = "YOUR_TOKEN";
[JsonPropertyName("Prefix")] public string Prefix { get; set; } = $" {ChatColors.Default}[{ChatColors.Green}MadGames.eu{ChatColors.Default}]";
[JsonPropertyName("DBDatabase")] public string DBDatabase { get; set; } = "database";
[JsonPropertyName("DBUser")] public string DBUser { get; set; } = "user";
[JsonPropertyName("DBPassword")] public string DBPassword { get; set; } = "password";
[JsonPropertyName("DBHost")] public string DBHost { get; set; } = "localhost";
[JsonPropertyName("DBPort")] public int DBPort { get; set; } = 3306;
[JsonPropertyName("SettingsCommand")] public string SettingsCommand { get; set; } = "css_settings";
[JsonPropertyName("AdminPermissions")] public string AdminPermissions { get; set; } = "@css/root";
[JsonPropertyName("VIPTag_Chat")] public string VIPTag_Chat { get; set; } = "{Green} VIP{Grey}» ";
[JsonPropertyName("VIPTag_Score")] public string VIPTag_Score { get; set; } = "★";
[JsonPropertyName("MVIPTag_Chat")] public string MVIPTag_Chat { get; set; } = "{Green} MVIP{Grey}» ";
[JsonPropertyName("MVIPTag_Score")] public string MVIPTag_Score { get; set; } = "⁂";
[JsonPropertyName("NadeEnable")] public bool NadeEnable { get; set; } = true;
[JsonPropertyName("NadeModel")] public string NadeModel { get; set; } = "particles/ui/hud/ui_map_def_utility_trail.vpcf";
[JsonPropertyName("TrailParticle")] public string ParticleModel { get; set; } = "particles/ui/hud/ui_map_def_utility_trail.vpcf";
[JsonPropertyName("NadeColor")] public string NadeColor { get; set; } = "red";
[JsonPropertyName("Enable_Credits")] public bool More_Credit { get; set; } = true;
[JsonPropertyName("Credits_Kill")] public int Credits_For_Kill { get; set; } = 50;
[JsonPropertyName("Enable_Credits_Plant")] public bool More_Credit2 { get; set; } = true;
[JsonPropertyName("Credits_Plant")] public int Credits_For_Plant { get; set; } = 50;
[JsonPropertyName("Enable_Credits_Defuse")] public bool More_Credit3 { get; set; } = true;
[JsonPropertyName("Credits_Defuse")] public int Credits_For_Defuse { get; set; } = 50;
[JsonPropertyName("EnabledVampirism")] public bool VampirismEnabled { get; set; } = true;
[JsonPropertyName("VampirismCountHealth")] public int VampirismCountHealth { get; set; } = 10;
[JsonPropertyName("AllowTestVIP")] public bool AllowTestVIP { get; set; } = true;
[JsonPropertyName("ReservedSlots")] public int ReservedSlots { get; set; } = 1;
[JsonPropertyName("ReservedType")] public int ReservedType { get; set; } = 1;
[JsonPropertyName("DaysTestVIP")] public int DaysTestVIP { get; set; } = 7;
[JsonPropertyName("EnabledTags")] public bool EnabledTags { get; set; } = true;
[JsonPropertyName("StartItems")] public bool EnabledStartItems { get; set; } = true;
[JsonPropertyName("EnabledBhop")] public bool EnabledBhop { get; set; } = true;
[JsonPropertyName("EnabledTrails")] public bool EnabledTrails { get; set; } = true;
[JsonPropertyName("EnabledShotTrails")] public bool EnabledShotTrails { get; set; } = true;
[JsonPropertyName("EnabledGuns")] public bool EnabledGuns { get; set; } = true;
[JsonPropertyName("EnabledQuake")] public bool EnabledQuake { get; set; } = false;
[JsonPropertyName("EnabledFallDamage")] public bool FallDamage { get; set; } = true;
[JsonPropertyName("EnabledNoKnifeDamage")] public bool NoKnifeDamage { get; set; } = true;
[JsonPropertyName("EnabledModels")] public bool ModelsEnabled { get; set; } = true;
[JsonPropertyName("EnabledDoubbleJump")] public bool EnabledDoubbleJump { get; set; } = true;
[JsonPropertyName("EnabledInstantReload")] public bool EnabledInstantReload { get; set; } = true;
[JsonPropertyName("AllowPreCacheResources")] public bool Precache { get; set; } = true;
[JsonPropertyName("QuakeTeamKiller")] public string QuakeTeamKiller { get; set; } = "sounds/madgamessounds/quake/teamkiller.vsnd_c";
[JsonPropertyName("QuakeHeadShot")] public string QuakeHeadShot { get; set; } = "sounds/madgamessounds/quake/headshot.vsnd_c";
public List<Sound> Sounds { get; set; } = new List<Sound>
{
new Sound { Kill = 1, Path = "sounds/madgamessounds/quake/firstblood.vsnd_c" },
new Sound { Kill = 2, Path = "sounds/madgamessounds/quake/doublekill.vsnd_c" },
new Sound { Kill = 3, Path = "sounds/madgamessounds/quake/triplekill.vsnd_c" },
};
public List<StartItems> StartIs { get; set; } = new List<StartItems>
{
new StartItems { team = "CT", weapons = new List<string> { "weapon_hegrenade", "weapon_smokegrenade" } },
new StartItems { team = "T", weapons = new List<string> { "weapon_hegrenade", "weapon_smokegrenade" } },
};
public List<Gun> Guns { get; set; } = new List<Gun>
{
new Gun { permission = "vip", weapon = "weapon_ak47", name = "AK-47", id = 1 },
new Gun { permission = "vip", weapon = "weapon_m4a1", name = "M4A4", id = 2 },
new Gun { permission = "vip", weapon = "weapon_m4a1_silence", name = "M4A1-S", id = 3 },
new Gun { permission = "mvip", weapon = "weapon_awp", name = "AWP", id = 4 },
};
public List<VIP> VIPs { get; set; } = new List<VIP>
{
new VIP { value = 1, permission = "healthshot" },
new VIP { value = 1, permission = "store_credit" },
new VIP { value = 0, permission = "shotlaser" },
new VIP { value = 1, permission = "trials" },
new VIP { value = 0, permission = "nade" },
new VIP { value = 1, permission = "guns" },
new VIP { value = 1, permission = "bhop" },
new VIP { value = 1, permission = "bomb" },
new VIP { value = 1, permission = "health" },
new VIP { value = 1, permission = "falldmg" },
new VIP { value = 1, permission = "knife" },
new VIP { value = 1, permission = "jump" },
new VIP { value = 0, permission = "mvip" },
new VIP { value = 1, permission = "tag" },
new VIP { value = 0, permission = "reserved"},
new VIP { value = 0, permission = "reloading" },
new VIP { value = 0, permission = "antiflash" },
new VIP { value = 0, permission = "wings"},
new VIP { value = 0, permission = "starting_items"},
};
[JsonPropertyName("StartHealth")] public int StartHealth { get; set; } = 110;
[JsonPropertyName("MinRoundForGuns")] public int MinRoundForGuns { get; set; } = 2;
}
public class Sound
{
[JsonPropertyName("quake_kill")]
public required int Kill { get; init; }
[JsonPropertyName("path")]
public required string Path { get; init; }
}
public class VIP
{
[JsonPropertyName("permission")]
public required string permission { get; init; }
[JsonPropertyName("value")]
public required int value { get; init; }
}
public class StartItems
{
public required string team { get; set; }
public required List<string> weapons { get; set; }
}
public class Gun
{
public required string permission { get; set; }
public required string weapon { get; set; }
public required string name { get; set; }
public required int id { get; set; }
}