Use game.KickID instead of RunConsoleCommand

This commit is contained in:
Redox 2023-03-19 20:18:21 +01:00 committed by GitHub
parent 2ec73c3e58
commit 3edcbd6759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ function ULib.addBan( steamid, time, reason, name, admin )
end end
-- This redundant kick is to ensure they're kicked -- even if they're joining -- 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 ) writeBan( t )
hook.Call( ULib.HOOK_USER_BANNED, _, steamid, t ) hook.Call( ULib.HOOK_USER_BANNED, _, steamid, t )