Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oqyh authored Dec 30, 2023
1 parent 2cbada6 commit bcb5d8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Chat_Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ChatLoggerConfig : BasePluginConfig
public class ChatLogger : BasePlugin, IPluginConfig<ChatLoggerConfig>
{
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();
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit bcb5d8b

Please sign in to comment.