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 ​
Name | Type |
---|---|
control | AdminControl |
callback | PlayerCallback |
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 ​
Name | Type |
---|---|
player | Player |
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 ​
Name | Type |
---|---|
player | Player |
Returns ​
void