-
Notifications
You must be signed in to change notification settings - Fork 12
/
PluginConfig.cs
26 lines (20 loc) · 894 Bytes
/
PluginConfig.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
namespace AutoUpdater
{
using System.Text.Json.Serialization;
using CounterStrikeSharp.API.Core;
public sealed class PluginConfig : BasePluginConfig
{
[JsonPropertyName("ConfigVersion")]
public override int Version { get; set; } = 2;
[JsonPropertyName("UpdateCheckInterval")]
public int UpdateCheckInterval { get; set; } = 180;
[JsonPropertyName("ShutdownDelay")]
public int ShutdownDelay { get; set; } = 120;
[JsonPropertyName("MinPlayersInstantShutdown")]
public int MinPlayersInstantShutdown { get; set; } = 1;
[JsonPropertyName("MinPlayerPercentageShutdownAllowed")]
public float MinPlayerPercentageShutdownAllowed { get; set; } = 0.6f;
[JsonPropertyName("ShutdownOnMapChangeIfPendingUpdate")]
public bool ShutdownOnMapChangeIfPendingUpdate { get; set; } = true;
}
}