forked from TeamUlysses/ulib
Use game.KickID instead of RunConsoleCommand
This commit is contained in:
parent
2ec73c3e58
commit
3edcbd6759
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user