Skip to content
On this page

Athena.systems.adminControl

Modules

Functions

addControl

Usage

Athena.systems.adminControl.addControl(control, callback): boolean

Creates a restricted admin control function.

When a function is invoked it is automatically checked for proper permissions.

Export

Parameters

NameType
controlAdminControl
callbackPlayerCallback

Returns

boolean

Defined in

server/systems/adminControl.ts:18


getControls

Usage

Athena.systems.adminControl.getControls(player): any

Get all admin controls available for a player.

Export

Parameters

NameType
playerPlayer

Returns

any

Defined in

server/systems/adminControl.ts:40


updateControls

Usage

Athena.systems.adminControl.updateControls(player): void

Parses controls and pushes them down to the client. Updating their control list.

Parameters

NameType
playerPlayer

Returns

void

Defined in

server/systems/adminControl.ts:63

Created by Stuyk | Est. 2020