-
Notifications
You must be signed in to change notification settings - Fork 3
/
Config.cs
51 lines (36 loc) · 2.17 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
44
45
46
47
48
49
50
51
using System.ComponentModel;
using Exiled.API.Interfaces;
namespace KillLogs
{
public class Config : IConfig
{
[Description("Whether or not this plugin is enabled.")]
public bool IsEnabled { get; set; } = true;
[Description("The Discord webhook URL.")]
public string DiscordWebhookUrl { get; set; } = "https://canary.discord.com/api/webhooks/id/secret";
[Description("The Discord role ID to ping when a cuffed kill/teamkill happens.")]
public string RoleIdToPing { get; set; } = "012345678910";
[Description(
"Length of the queue before it should be sent. Lower numbers result in faster sends to Discord but can lead to ratelimiting by Discord.")]
public int QueueLength { get; set; } = 1000;
[Description("Whether to log SCP kills or not.")]
public bool LogScpKills { get; set; } = false;
[Description("Whether to log suicides or not.")]
public bool LogSuicides { get; set; } = true;
[Description("Whether or not to ping when a human kills another cuffed human.")]
public bool PingCuffedHumanKills { get; set; } = true;
[Description("Whether or not to ping when a teamkill happens.")]
public bool PingTeamkills { get; set; } = true;
[Description("Whether or not to notify online players with the kill_logs.notify permission when a human kills another cuffed human.")]
public bool NotifyCuffedHumanKills { get; set; } = true;
[Description("Whether or not to notify online players with the kill_logs.notify permission when a teamkill happens.")]
public bool NotifyTeamKills { get; set; } = true;
[Description("Duration (in seconds) of how long the kill notification should last.")]
public float NotifyHintDuration { get; set; } = 10;
[Description("The name to use for the webhook.")]
public string WebhookName { get; set; } = "Kill Logs";
[Description("The URL to use for the webhook avatar.")]
public string WebhookAvatarUrl { get; set; } = "https://via.placeholder.com/150.png";
public bool Debug { get; set; } = false;
}
}