-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfiguration.cs
37 lines (35 loc) · 1.08 KB
/
Configuration.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
using Rocket.API;
using Rocket.Core.Assets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using Rocket.Unturned.Items;
using SDG.Unturned;
namespace AntiKos
{
public class Configuration : IRocketPluginConfiguration
{
public int KillCounterExpireTimeSeconds;
public int KillsToGetKicked;
public string KickMessage;
public bool EnableKillBeforeBan;
public bool BanEnabled;
public string BanMessage;
public int KillsToGetBanned;
public uint BanDurationSeconds;
public void LoadDefaults()
{
KillCounterExpireTimeSeconds = 1800;
KillsToGetKicked = 2;
KickMessage = "[AntiKos] You have killed too many people. Further killing will result in ban";
EnableKillBeforeBan = true;
BanEnabled = true;
BanMessage = "[AntiKos] You have killed too many people";
KillsToGetBanned = 4;
BanDurationSeconds = 43200;
}
}
}