#Adding a cooldown

1 messages · Page 1 of 1 (latest)

frosty ether
#

I am trying to add a cooldown but I cant seem to figure out how to add a cooldown to where it only lets them click it and claim the stuff every 2 weeks

#

this is the menu
register_command: true
open_command: booster
size: 27
menu_title: '&dBooster Rewards!'
items:
'rewards':
material: AMETHYST_CLUSTER
data: 0
slot: 13
display_name: "&dBooster Rewards"
lore:
- '&d- Access to (Booster) Tag'
- '&6- Access to (ʕ •ᴥ•ʔ) Tag'
- '&9- Access to (Cool) Tag'
- '&2- 10k Money Every 2 Weeks'
- '&5- 2 Epic Crate Keys every 2 Weeks'
click_requirement:
minimum_requirements: 1
stop_at_success: true
deny_commands:
- "[message] &dYou have not boosted the Discord!"
requirements:
perm1:
type: has permission
permission: booster.1
left_click_commands:
- '[console] money give %player_name% 10000'
- '[console] crate key give %player_name% epic_key 2'
- '[close]'
cooldown:
type: player
time: 1209600 # 2 weeks in seconds (14 days * 24 hours * 60 minutes * 60 seconds)
on_cooldown:
- '[message] &dYou can only claim this reward once every 2 weeks!'
show_in_lore: true
lore_cooldown_format: '&cCooldown: {time}'

lucid sorrelBOT
#
Valid Config!

teddy1212, I checked your config and, it's valid!

+ Correctly Formatted```