From 893fa02c5949e519cdbda69f8504e9b603a34717 Mon Sep 17 00:00:00 2001 From: MADNESSZ1RA <92206761+MADNESSZ1RA@users.noreply.github.com> Date: Sun, 7 Jul 2024 04:11:48 +0300 Subject: [PATCH] Update ConnectionLogs.cs --- ConnectionLogs/ConnectionLogs.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ConnectionLogs/ConnectionLogs.cs b/ConnectionLogs/ConnectionLogs.cs index f2c0d2b..9d0a5a2 100644 --- a/ConnectionLogs/ConnectionLogs.cs +++ b/ConnectionLogs/ConnectionLogs.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Text; using System.Text.Json; @@ -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 => "v0.5"; + public override string ModuleVersion => "v1.0"; private Config _config = null!; @@ -23,7 +23,7 @@ public override void Load(bool hotReload) _config = LoadConfig(); } [GameEventHandler] - public HookResult OnPlayerConnect(EventPlayerConnect @event, GameEventInfo info) + public HookResult OnPlayerConnectFull(EventPlayerConnectFull @event, GameEventInfo info) { if (@event.Userid != null && @event.Userid.IsValid) { @@ -115,7 +115,7 @@ public string CheckVipStatus(long sid) using var reader = command.ExecuteReader(); if (reader.Read()) { - string groupname = reader.GetString("name"); + string groupname = reader.GetString("group"); // Изменено с "name" на "group" Logger.LogInformation("Ответ от бд - " + groupname); return groupname; } @@ -230,4 +230,4 @@ public class Config public required string PisexVipPassword { get; set; } public required string PisexVipdbName { get; set; } } -} \ No newline at end of file +}