Merge pull request #91 from wrefgtzweve/patch-1

Use game.KickID instead of RunConsoleCommand
This commit is contained in:
SticklyMan 2023-11-18 16:32:35 -07:00 committed by GitHub
commit b97be76b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,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 )