Advanced Cooldown Code Download
Config.yml
yaml
# Format:
# <name>: <value>
#
# Example:
# simple-cooldown: 100
simple-cooldown: 100
cooldown-10000: 10000
cooldown-999: 999Variable
<name>is the cooldown name from theconfig.yml
advanced_cooldown_<name>advanced_cooldown_<name>_soradvanced_cooldown_<name>_secondsadvanced_cooldown_<name>_moradvanced_cooldown_<name>_minutesadvanced_cooldown_<name>_horadvanced_cooldown_<name>_hoursadvanced_cooldown_<name>_format_<time-format>- Example Format:
advanced_cooldown_<name>_format_HH:mm:ss
- Example Format:
Requirement
Format
yaml
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
yaml
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"Time Format
| 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