forked from sharkbound/WebsiteCommand
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathWebsiteConfig.cs
37 lines (34 loc) · 999 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
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rocket.API;
using System.Xml.Serialization;
using Rocket.Core.Configuration;
namespace WebsiteCommand
{
public class WebsiteConfig
{
public bool OpenUrlOnJoin { get; set; } = false;
public string JoinUrl { get; set; } = "www.google.com";
public string JoinDesc { get; set; } = "website:";
[ConfigArray]
public WebsiteCommand[] WebsiteCommands { get; set; } =
{
new WebsiteCommand
{
CommandName = "discord",
Description = "Join our discord!",
Url = "https://discord.gg",
Permission = "url.discord"
}
};
}
public class WebsiteCommand
{
public string Url { get; set; }
public string Description { get; set; }
public string CommandName { get; set; }
public string Permission { get; set; }
}
}