Name | Cooldown |
Syntax | cooldown [<duration>] (global) (script:<script>) |
Short Description | Temporarily disables an interact script for the linked player. |
Full Description | Temporarily disables an interact script for the linked player.
Cooldown requires a type (player or global), a script, and a duration. It also requires a valid link to a PlayerTag if using a non-global cooldown. To cooldown non-interact scripts automatically, consider ratelimit. Cooldown periods are persistent through a server restart as they are saved in the 'saves.yml'. |
Related Tags | <ScriptTag.cooled_down[player]> Returns whether the script is currently cooled down for the player. Any global (...)
<ScriptTag.cooldown> Returns the time left for the player to cooldown for the script.
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Group | core |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/core/CooldownCommand.java#L25 |