From 3ad57fb62489c9dab3a3e0d448a434c488be9a45 Mon Sep 17 00:00:00 2001 From: MADNESSZ1RA <92206761+MADNESSZ1RA@users.noreply.github.com> Date: Sun, 14 Jul 2024 11:22:06 +0300 Subject: [PATCH] Update ConnectionLogs.cs --- ConnectionLogs/ConnectionLogs.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ConnectionLogs/ConnectionLogs.cs b/ConnectionLogs/ConnectionLogs.cs index d6a1604..3728629 100644 --- a/ConnectionLogs/ConnectionLogs.cs +++ b/ConnectionLogs/ConnectionLogs.cs @@ -215,8 +215,12 @@ private async void SendToDiscord(string webhookUrl, string title, string playerN $"**{_phrases.Admin}** {adminStatus}\n" + $"**{_phrases.Vip}** {vipStatus}\n" + playTimeString + - $"**{_phrases.Url}** [{_phrases.UrlClick}](https://steamcommunity.com/profiles/{SteamId32To64(playerId)})", - inline = false + $"**{_phrases.Url}** [{_phrases.UrlClick}](https://steamcommunity.com/profiles/{SteamId32To64(playerId)})\n\n" + + + $"**{_phrases.Server}**\n"+ + $"**IP:** {_phrases.ServerIp}\n" + + $"**Name:** {_phrases.ServerName}\n", + inline = false, } } } @@ -299,7 +303,10 @@ private Phrases CreatePhrases(string phrasesPath) NoVip = "", Url = "", UrlClick = "", - PlayerTime = "" + PlayerTime = "", + Server = "", + ServerIp = "", + ServerName = "", }; try { @@ -331,6 +338,9 @@ public class Phrases public required string Url { get; set; } public required string UrlClick { get; set; } public required string PlayerTime { get; set; } + public required string Server { get; set; } + public required string ServerIp { get; set; } + public required string ServerName { get; set; } } public class Config {