Manage Bans systemclient
System defined in core/system/sh_manage_bans.lua
Registers the Manage Bans system, a paged list of banned players that can be unbanned with a click.
The page is shown to players with access to /PlyUnban. The server sends the bans eight per page over the
SystemUnbanGet Cable message and unbans through the PlyUnban command when it receives SystemUnbanDo.
Summary
Methods
HasAccess()client
Shows the Manage Bans system to players who may use the
PlyUnban command.Lists the current page of banned players with their remaining time and reason, and page buttons.
Methods
Shows the Manage Bans system to players who may use the PlyUnban command.
Returns
- Boolean
truewhen the player has the command's access flags, otherwisenil
SYSTEM:OnDisplay(systemPanel, systemForm)
client gamemodes/catwork/gamemode/core/system/sh_manage_bans.lua:30Lists the current page of banned players with their remaining time and reason, and page buttons.
Requests the page from the server with the SystemUnbanGet Cable message unless noRefresh is set;
clicking a ban asks for confirmation and sends SystemUnbanDo.
Parameters
- systemPanel Panel The system panel to add the ban list to
- systemForm Panel The system's form (unused, the system does not create one)