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 07698e5 commit 893fa02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ConnectionLogs/ConnectionLogs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Text;
using System.Text.Json;
Expand All @@ -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!;

Expand All @@ -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)
{
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -230,4 +230,4 @@ public class Config
public required string PisexVipPassword { get; set; }
public required string PisexVipdbName { get; set; }
}
}
}

0 comments on commit 893fa02

Please sign in to comment.