forked from dran1x/CS2-AutoUpdater
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginConfig.cs
More file actions
26 lines (18 loc) · 798 Bytes
/
Copy pathPluginConfig.cs
File metadata and controls
26 lines (18 loc) · 798 Bytes
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
using System.Text.Json.Serialization;
using CounterStrikeSharp.API.Core;
namespace AutoUpdater;
public sealed class PluginConfig : BasePluginConfig
{
[JsonPropertyName("ConfigVersion")]
public override int Version { get; set; } = 3;
[JsonPropertyName("UpdateCheckInterval")]
public int UpdateCheckInterval { get; set; } = 180;
[JsonPropertyName("ShutdownDelay")]
public int ShutdownDelay { get; set; } = 120;
[JsonPropertyName("ShutdownMessageInterval")]
public int ShutdownMessageInterval { get; set; } = 30;
[JsonPropertyName("MinPlayersInstantShutdown")]
public int MinPlayersInstantShutdown { get; set; } = 0;
[JsonPropertyName("ShutdownOnMapChangeIfPendingUpdate")]
public bool ShutdownOnMapChangeIfPendingUpdate { get; set; } = true;
}