mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
Hotfix for cssharp 101
Hotfix for non-main thread
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using CounterStrikeSharp.API.Core;
|
||||
using CounterStrikeSharp.API;
|
||||
using MySqlConnector;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
@@ -66,7 +65,7 @@ namespace CS2_SimpleAdmin
|
||||
return player?.IsValid == true ? TargetResult.Single : TargetResult.None;
|
||||
}
|
||||
|
||||
public static void KickPlayer(int? userId, string? reason = null)
|
||||
public static void KickPlayer(ushort userId, string? reason = null)
|
||||
{
|
||||
NativeAPI.IssueServerCommand($"kickid {userId} {reason}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user