From bcb5d8ba1be5fac819f174354d469090e98a3fac Mon Sep 17 00:00:00 2001 From: Gold KingZ <48490385+oqyh@users.noreply.github.com> Date: Sat, 30 Dec 2023 07:34:34 +0400 Subject: [PATCH] 1.0.2 --- Chat_Logger.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Chat_Logger.cs b/Chat_Logger.cs index 92634a5..8cd98cd 100644 --- a/Chat_Logger.cs +++ b/Chat_Logger.cs @@ -21,7 +21,7 @@ public class ChatLoggerConfig : BasePluginConfig public class ChatLogger : BasePlugin, IPluginConfig { public override string ModuleName => "Chat Logger"; - public override string ModuleVersion => "1.0.1"; + public override string ModuleVersion => "1.0.2"; public override string ModuleAuthor => "Gold KingZ"; public override string ModuleDescription => "Log Any Chat Discord Or Log Text"; public ChatLoggerConfig Config { get; set; } = new ChatLoggerConfig(); @@ -97,7 +97,7 @@ private HookResult OnPlayerSayPublic(CCSPlayerController? player, CommandInfo in var replacerlogDiscord = ReplaceMessages(Config.LogDiscordChatFormat, Time, Date, trimmedMessage, vplayername, steamId2, steamId3, steamId32.ToString(), steamId64.ToString(), ipAddress.ToString(), chatteam ?? "[----]"); if(Config.SendLogToWebHook) { - Task.Run(() => SendToDiscordWebhook(Config.WebHookURL, replacerlog, steamId64.ToString(), vplayername)); + Task.Run(() => SendToDiscordWebhook(Config.WebHookURL, replacerlogDiscord, steamId64.ToString(), vplayername)); } return HookResult.Continue; @@ -162,7 +162,7 @@ private HookResult OnPlayerSayTeam(CCSPlayerController? player, CommandInfo info var replacerlogDiscord = ReplaceMessages(Config.LogDiscordChatFormat, Time, Date, trimmedMessage, vplayername, steamId2, steamId3, steamId32.ToString(), steamId64.ToString(), ipAddress.ToString(), chatteam ?? "[----]"); if(Config.SendLogToWebHook) { - Task.Run(() => SendToDiscordWebhook(Config.WebHookURL, replacerlog, steamId64.ToString(), vplayername)); + Task.Run(() => SendToDiscordWebhook(Config.WebHookURL, replacerlogDiscord, steamId64.ToString(), vplayername)); } return HookResult.Continue;