- Documentation
- Administration and bans
Category
Administration and bans
All Lua functions and events in the Administration and bans category, on the server and the client.
Server functions 19
addBans an IP address, nickname or serial (Client ID) without the player having to be online.Ban banBans a player (their Client ID and IP address) and kicks them right away.Player getReturns the name of whoever issued the ban.Ban Admin getReturns the IP address stored in the ban.Ban IP getReturns the nickname stored in the ban.Ban Nick getReturns the ban reason.Ban Reason getReturns every active ban. Bans that have already expired are skipped.Bans getReturns the serial (Client ID) stored in the ban.Ban Serial getReturns when the ban was created, in seconds since 1 January 1970 (Unix time).Ban Time getReturns when the ban expires, in seconds since 1970. A permanent ban returnsUnban Time false.isChecks whether a value is a ban handle.Ban isChecks whether a connection with this serial or IP address would be rejected by bans.Banned kickKicks a player from the server. The player sees the reason and can rejoin right away.Player reloadReloads the ban list from disk, for example after editing the ban file by hand.Bans removeRemoves a ban.Ban setChanges the admin name stored in the ban.Ban Admin setChanges the nickname stored in the ban.Ban Nick setChanges the ban reason.Ban Reason setChanges when the ban expires. You pass a moment in seconds since 1970, not a duration.Unban Time