-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConfig.cs
35 lines (26 loc) · 1.06 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
namespace SpawnProtection
{
using CounterStrikeSharp.API.Core;
using System.Text.Json.Serialization;
public sealed class PluginConfig : BasePluginConfig
{
[JsonPropertyName("protection-time")]
public float SpawnProtTime { get; set; } = 10.0f;
[JsonPropertyName("disable-during-warmup")]
public bool DisableDuringWarmup { get; set; } = true;
[JsonPropertyName("spawn-prot-end-announce")]
public bool SpawnProtEndAnnouce { get; set; } = true;
[JsonPropertyName("display-timer")]
public bool CenterHtmlMessage { get; set; } = true;
[JsonPropertyName("render-models-transparent")]
public bool TransparentModel { get; set; } = true;
[JsonPropertyName("ct-protection-only")]
public bool CTProtOnly { get; set; } = false;
[JsonPropertyName("stop-on-player-move")]
public bool StopProtectionOnMove { get; set; } = false;
[JsonPropertyName("stop-on-weapon-fire")]
public bool StopProtectionOnWeaponFire { get; set; } = false;
[JsonPropertyName("ConfigVersion")]
public override int Version { get; set; } = 1;
}
}