From e14f36c46097e1270b5921873c533162fb8d38a0 Mon Sep 17 00:00:00 2001 From: 0b10000 Date: Thu, 16 Feb 2023 22:29:05 -0500 Subject: [PATCH] feat!: bump versions + add custom webhook name/avatar --- Config.cs | 6 ++++++ EventHandlers.cs | 1 - KillLogs.csproj | 2 +- LogManager.cs | 9 +++++++-- Plugin.cs | 8 +++++++- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/Config.cs b/Config.cs index c9e74bc..4987bd4 100644 --- a/Config.cs +++ b/Config.cs @@ -39,6 +39,12 @@ public class Config : IConfig [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; } diff --git a/EventHandlers.cs b/EventHandlers.cs index ab9b1df..1f67f84 100644 --- a/EventHandlers.cs +++ b/EventHandlers.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using Exiled.API.Features; -using Exiled.Events.EventArgs; using Exiled.Events.EventArgs.Player; using Exiled.Events.EventArgs.Server; using Exiled.Permissions.Extensions; diff --git a/KillLogs.csproj b/KillLogs.csproj index 6ea8d98..afbad7b 100644 --- a/KillLogs.csproj +++ b/KillLogs.csproj @@ -55,7 +55,7 @@ - +