-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathWebsiteConfig.cs
34 lines (31 loc) · 932 Bytes
/
WebsiteConfig.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 System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rocket.API;
using System.Xml.Serialization;
namespace WebsiteCommand
{
public class WebsiteConfig : IRocketPluginConfiguration
{
public bool OpenUrlOnJoin;
public string JoinUrl;
public string JoinDesc;
[XmlArrayItem(ElementName = "WebsiteCommand")]
public List<WebsiteCommand> WebsiteCommands;
public void LoadDefaults()
{
OpenUrlOnJoin = false;
JoinUrl = "www.google.com";
JoinDesc = "website:";
WebsiteCommands = new List<WebsiteCommand> { new WebsiteCommand{CommandName = "default", Desc = "default", Help = "default", Url = "default"}};
}
}
public class WebsiteCommand
{
public string Url;
public string Desc;
public string CommandName;
public string Help;
}
}