forked from IcePlugins/AntiLock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.cs
43 lines (41 loc) · 1.12 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
36
37
38
39
40
41
42
43
using Rocket.API;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace AntiLock
{
public class LockGroup
{
[XmlAttribute]
public string Permission { get; set; }
[XmlAttribute]
public int MaxLocks { get; set; }
}
public class Config : IRocketPluginConfiguration
{
public int DefaultMaxLocks = 0;
public bool
DisplayLoadMessage = true,
IgnoreAdmins = true,
DisplayMaxlocksNotice = true,
DisplayLockNotice = true;
public string
AllowOtherPermission = "antilock.clearlocks.other";
public List<LockGroup> LockGroups = new List<LockGroup>();
public void LoadDefaults()
{
LockGroups = new List<LockGroup>
{
new LockGroup
{
MaxLocks = 5,
Permission = "antilock.lock"
},
new LockGroup
{
MaxLocks = 10,
Permission = "antilock.biglock"
}
};
}
}
}