forked from nordbearbotdev/Femida
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FemidaLockerFemidalockerConfig.cs
46 lines (41 loc) · 1.4 KB
/
FemidaLockerFemidalockerConfig.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
using System;
using JetBrains.Annotations;
using Newtonsoft.Json;
using FemidaLocker.ItemSpawning;
namespace FemidaLocker
{
/// <summary>
/// Represents the NoCheat configuration. This class is a singleton.
/// </summary>
[JsonObject(MemberSerialization.OptIn)]
public sealed class NoCheatConfig
{
/// <summary>
/// Gets the FemidaLocker configuration instance.
/// </summary>
[NotNull]
public static FemidaLockerConfig Instance { get; internal set; } = new NoCheatConfig();
/// <summary>
/// Gets or sets the ban duration.
/// </summary>
[JsonProperty(Order = 1)]
public TimeSpan BanDuration { get; set; } = TimeSpan.FromDays(1);
/// <summary>
/// Gets or sets the ban message.
/// </summary>
[JsonProperty(Order = 2)]
[NotNull]
public string BanMessage { get; set; } = "Cheating";
/// <summary>
/// Gets or sets the ItemSpawning module configuration.
/// </summary>
[JsonProperty(Order = 3)]
[NotNull]
public Config ItemSpawning { get; set; } = new Config();
/// <summary>
/// Gets or sets the number of infraction points required for a temporary ban to be issued.
/// </summary>
[JsonProperty(Order = 0)]
public int PointThreshold { get; set; } = 1000;
}
}