Athena.controllers.dynamicDoors.cooldowns ​
Functions ​
clearCooldown ​
Usage
Athena.controllers.dynamicDoors.cooldowns.clearCooldown(player
): void
Clear cooldown for triggering the door event.
Export
Parameters ​
Name | Type |
---|---|
player | Player |
Returns ​
void
Defined in ​
server/controllers/dynamicDoors/cooldowns.ts:45
getExpiration ​
Usage
Athena.controllers.dynamicDoors.cooldowns.getExpiration(player
): any
Get expiration time of a cooldown
Export
Parameters ​
Name | Type |
---|---|
player | Player |
Returns ​
any
Defined in ​
server/controllers/dynamicDoors/cooldowns.ts:56
isCooldownDone ​
Usage
Athena.controllers.dynamicDoors.cooldowns.isCooldownDone(player
): boolean
Check if a cooldown is completed.
Export
Parameters ​
Name | Type |
---|---|
player | Player |
Returns ​
boolean
Defined in ​
server/controllers/dynamicDoors/cooldowns.ts:31
updateCooldown ​
Usage
Athena.controllers.dynamicDoors.cooldowns.updateCooldown(player
): void
Register a cooldown, with predetermiend
Export
Parameters ​
Name | Type |
---|---|
player | Player |
Returns ​
void