mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-10-18 04:47:04 +02:00
Hotfix for cssharp 101
Hotfix for non-main thread
This commit is contained in:
parent
9c293e6201
commit
dcc85b21c3
6 changed files with 197 additions and 113 deletions
|
|
@ -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}");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue