- The plugin was not working for version 1.21.8. This fix should hopefully also prevent some future version breaking.
- There was a bug causing the plugin to not function properly in minecraft version 1.12.x. This has now been fixed.
- 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
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
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."
![]()
- Bar drink items' lore can now contain
- %superLuckyReward%
- %superLuckyOdds%
- There is a new config option you can add to your config.yml. If you set it to false, the bars will not automatically close when a player buys a drink. If this field doesn't exist in the config, the bar will close after a purchase by default.
YAML:# Set this to true if you want bars to auto-close after drink purchase. autoCloseBar: true
- There was a NullPointerException occurring after users used the /bar reload command and then tried to buy drinks. This is now fixed.
