From 3edcbd675945161c4736aefba4eeeabce390d4a1 Mon Sep 17 00:00:00 2001 From: Redox Date: Sun, 19 Mar 2023 20:18:21 +0100 Subject: [PATCH] Use game.KickID instead of RunConsoleCommand --- lua/ulib/server/bans.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/ulib/server/bans.lua b/lua/ulib/server/bans.lua index a655a68..80b1265 100644 --- a/lua/ulib/server/bans.lua +++ b/lua/ulib/server/bans.lua @@ -198,7 +198,7 @@ function ULib.addBan( steamid, time, reason, name, admin ) end -- This redundant kick is to ensure they're kicked -- even if they're joining - RunConsoleCommand("kickid", steamid, shortReason or "") + game.KickID( steamid, shortReason or "" ) writeBan( t ) hook.Call( ULib.HOOK_USER_BANNED, _, steamid, t )