Advanced Cooldown
Code Download
Config.yml
# Format:
# <name>: <value>
#
# Example:
# simple-cooldown: 100
simple-cooldown: 100
cooldown-10000: 10000
cooldown-999: 999
Variable
<name> is the cooldown name from the config.yml
advanced_cooldown_<name>advanced_cooldown_<name>_s or advanced_cooldown_<name>_secondsadvanced_cooldown_<name>_m or advanced_cooldown_<name>_minutesadvanced_cooldown_<name>_h or advanced_cooldown_<name>_hoursadvanced_cooldown_<name>_format_<time-format>- Example Format:
advanced_cooldown_<name>_format_HH:mm:ss
Requirement
advanced-cooldown: <name>
Description
- This requirement will check if the player is not in a cooldown timer named
<name>. - After checking the requirement, the addon will start the cooldown timer for the player.
Example
advanced-cooldown:
slot: 1
id: clock
name: "&cAdvanced Cooldown"
command:
- "tell: &aHello"
click-requirement:
left:
test:
advanced-cooldown: "simple-cooldown" # from config.yml
fail-command:
- "tell: &cYou need to wait {advanced_cooldown_simple-cooldown_s} seconds"
right:
test:
advanced-cooldown: "cooldown-10000" # from config.yml
fail-command:
- "tell: &cYou need to wait {advanced_cooldown_cooldown-10000_s} seconds"
middle:
test:
advanced-cooldown: "cooldown-999" # from config.yml
fail-command:
- "tell: &cYou need to wait {advanced_cooldown_cooldown-999_s} seconds"
| character | duration element |
|---|
| y | years |
| M | months |
| d | days |
| H | hours |
| m | minutes |
| s | seconds |
| S | milliseconds |
- Example:
HH:mm:ss: show hours, minutes and secondsYY:MM:dd HH:mm:ss: show years, months, days, hours, minutes and seconds