Administration¶
This page documents the hooks defined by the administration module.
CharListColumns(columns)View Source
Purpose
Allows code to add extra columns to the administration character list.
Realm
Client
Parameters
table columns The mutable list of character list column definitions.
CharListEntry(entry, row)View Source
GetAdminESPTarget(ent, client)View Source
Purpose
Allows clientside code to override which entity should be treated as the admin ESP target.
Realm
Client
Parameters
Entity ent The entity currently under consideration.
Player client The local player drawing admin ESP.
Returns
Entity|false|nil Return a replacement target entity, or false to suppress the current target.
OnAdminSystemLoaded(groups, privileges)View Source
OnPrivilegeRegistered(privilege)View Source
Purpose
Called after a new administration privilege is registered.
Realm
Server
Parameters
table privilege The registered privilege definition.
OnPrivilegeUnregistered(privilege)View Source
Purpose
Called after an administration privilege is removed.
Realm
Server
Parameters
table privilege The privilege definition that was removed.
OnSetUsergroup(sid, newGroup, source, player)View Source
OnUsergroupCreated(groupName, groupData)View Source
OnUsergroupPermissionsChanged(groupName, groupData)View Source
OnUsergroupRemoved(groupName)View Source
Purpose
Called after an administration usergroup is removed.
Realm
Server
Parameters
string groupName The removed usergroup name.
OnUsergroupRenamed(oldName, newName)View Source
PlayerGagged(target, admin)View Source
PlayerMuted(target, admin)View Source
PlayerUngagged(target, admin)View Source
PlayerUnmuted(target, admin)View Source
RunAdminSystemCommand(cmd, victim, dur, reason)View Source
Purpose
Allows clientside code to handle an admin command before the chat-command fallback runs.
Realm
Client
Parameters
string cmd The admin command being executed.
Player|string victim The target player or identifier.
number dur optional The optional duration for timed commands.
string reason optional The optional reason text supplied with the command.
Returns
boolean|nil, function|nil Return true and a callback to handle the command through the hook.