Skip to content

Commit

Permalink
Update ConnectionLogs.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
MADNESSZ1RA authored Jul 7, 2024
1 parent cee7fef commit 64066e1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ConnectionLogs/ConnectionLogs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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!;

Expand Down Expand Up @@ -43,7 +43,7 @@ public HookResult OnPlayerConnectFull(EventPlayerConnectFull @event, GameEventIn
}
else
{
Logger.LogInformation("Error on player connect");
Logger.LogInformation("Ошибка при подключении игрока");
}
}
return HookResult.Continue;
Expand Down Expand Up @@ -82,7 +82,7 @@ FROM iks_admins a
else
{
Logger.LogInformation("Ответ от бд - " + "No results found");
return "Нет админки";
return "Нет админ привелегии";
}
}
catch (Exception ex)
Expand Down Expand Up @@ -120,7 +120,7 @@ public string CheckVipStatus(long sid)
else
{
Logger.LogInformation("Ответ от бд - " + "No results found");
return "Нет випки";
return "Нет вип привелегии";
}
}
catch (Exception ex)
Expand All @@ -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();
Expand All @@ -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[]
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 64066e1

Please sign in to comment.