Ban-related functions and listeners.
Bans | Ban-related functions and listeners. |
Functions | |
ban | Bans a user. |
kickban | An alias for ban. |
addBan | Helper function to store additional data about bans. |
unban | Unbans the given steamid. |
getLegacyBans | Returns bans written by ULib versions prior to 2.7. |
refreshBans | Refreshes the ULib bans. |
ULib.kickban = ULib.ban
An alias for ban.
function ULib.addBan( steamid, time, reason, name, admin )
Helper function to store additional data about bans.
steamid | Banned player’s steamid |
time | Length of ban in minutes, use 0 for permanant bans |
reason | (Optional) Reason for banning |
name | (Optional) Name of player banned |
admin | (Optional) Admin player enacting the ban |
2.10 | Initial |
2.40 | If the steamid is connected, kicks them with the reason given |
Bans a user.
function ULib.ban( ply, time, reason, admin )
An alias for ban.
ULib.kickban = ULib.ban
Helper function to store additional data about bans.
function ULib.addBan( steamid, time, reason, name, admin )
Unbans the given steamid.
function ULib.unban( steamid, admin )
Returns bans written by ULib versions prior to 2.7.
function ULib.getLegacyBans()
Refreshes the ULib bans.
function ULib.refreshBans()