From 64066e17e46831df38b296df42d22185fbabb16d Mon Sep 17 00:00:00 2001 From: MADNESSZ1RA <92206761+MADNESSZ1RA@users.noreply.github.com> Date: Sun, 7 Jul 2024 07:09:10 +0300 Subject: [PATCH] Update ConnectionLogs.cs --- ConnectionLogs/ConnectionLogs.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ConnectionLogs/ConnectionLogs.cs b/ConnectionLogs/ConnectionLogs.cs index c79eac1..9eb804c 100644 --- a/ConnectionLogs/ConnectionLogs.cs +++ b/ConnectionLogs/ConnectionLogs.cs @@ -14,7 +14,7 @@ public class HelloWorldPlugin : BasePlugin { public override string ModuleAuthor => "ZIRA"; public override string ModuleName => "[Discord] Pro Connection Logs"; - public override string ModuleVersion => "v1.1"; + public override string ModuleVersion => "v1.2"; private Config _config = null!; @@ -43,7 +43,7 @@ public HookResult OnPlayerConnectFull(EventPlayerConnectFull @event, GameEventIn } else { - Logger.LogInformation("Error on player connect"); + Logger.LogInformation("Ошибка при подключении игрока"); } } return HookResult.Continue; @@ -82,7 +82,7 @@ FROM iks_admins a else { Logger.LogInformation("Ответ от бд - " + "No results found"); - return "Нет админки"; + return "Нет админ привелегии"; } } catch (Exception ex) @@ -120,7 +120,7 @@ public string CheckVipStatus(long sid) else { Logger.LogInformation("Ответ от бд - " + "No results found"); - return "Нет випки"; + return "Нет вип привелегии"; } } catch (Exception ex) @@ -131,7 +131,7 @@ public string CheckVipStatus(long sid) } public async void SendMessageToDiscord(string WebhookUrl, string PlayerName, int PlayerId, string AdminStatus, string VIPStatus) { - Logger.LogInformation("trying to send message"); + Logger.LogInformation("Пытаюсь отправить сообщение в дискорд"); try { using var httpClient = new HttpClient(); @@ -141,7 +141,7 @@ public async void SendMessageToDiscord(string WebhookUrl, string PlayerName, int { new { - title = "Членикс подключился", + title = "Игрок подключился.", description = "Discord Pro Connection Logs", color = 255, fields = new[] @@ -189,7 +189,7 @@ private Config CreateConfig(string configPath) JsonSerializer.Serialize(config, new JsonSerializerOptions { WriteIndented = true })); Console.ForegroundColor = ConsoleColor.DarkGreen; - Console.WriteLine("[ReportSystem] The configuration was successfully saved to a file: " + configPath); + Console.WriteLine("[ReportSystem] Конфиг успешно сохранён: " + configPath); Console.ResetColor(); return config;