-
Notifications
You must be signed in to change notification settings - Fork 12
/
Configuration.cs
34 lines (32 loc) · 1.4 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
using Rocket.API;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace Arechi.CallVote
{
public class Configuration : IRocketPluginConfiguration
{
[XmlArray(ElementName = "Votes")]
[XmlArrayItem(ElementName = "Vote")]
public List<VoteSettings> Votes;
public void LoadDefaults()
{
Votes = new List<VoteSettings>
{
new VoteSettings("Day", "d", "/day"),
new VoteSettings("Night", "n", "/night"),
new VoteSettings("Kick", "k", "/kick", 1),
new VoteSettings("Weather", "w", "/weather"),
new VoteSettings("Rain", "r", "/weather storm"),
new VoteSettings("NoRain", "nr", "/weather none"),
new VoteSettings("Snow", "s", "/weather blizzard"),
new VoteSettings("NoSnow", "ns", "/weather none"),
new VoteSettings("HealAll", "ha", "/healall"),
new VoteSettings("Airdrop", "a", "/airdrop"),
new VoteSettings("AirdropAll", "aa", "/airdropall", requirePermission: true),
new VoteSettings("VehicleAll", "va", "/vehicleall", requirePermission: true),
new VoteSettings("MaxSkills", "ms", "/maxskills", requirePermission: true),
new VoteSettings("ItemAll", "ia", "/itemall", requirePermission: true)
};
}
}
}