- Drinks can now have cooldowns, meaning a player can only have a GambleBar drink ever x hours, minutes, or seconds. This will require fields being added to the config/message files. There is also now a "cooldowns.yml" file but it does not need to be touched.
Add this to the config.yml
Code (YAML):
# Set this to true if you want the GambleBar cooldown to apply to each drink individually
# Leave it as false if you want the cooldown to apply to ANY/ALL drinks the same.
individualCooldown
: false
# This number is how many seconds the cooldown is between a player consuming a GambleBar drink
cooldownSeconds
: 300
And add this to the messages.yml
Code (YAML):
# Sent when a player tries to consume a drink but they are on cooldown
cooldownMessage
:
"&c&lSorry&7, you cannot drink this for another &c%time%&7."
![[IMG]](//proxy.spigotmc.org/e6700f567b11c2b22eb6749741df3f444e052d5c/68747470733a2f2f692e696d6775722e636f6d2f484669713149552e706e67)