With this update, it is now possible to configure a third possible outcome from a drink, a "super lucky win". (Note: If a super lucky win occurs, the normal rewards will not be given, only the super lucky rewards.)
Users should update their configuration if they want to use super lucky wins, but their plugin won't break if they don't. Below, see what a drink configuration looks like with super lucky wins. Notice the added lines, "superLuckyReward, superLuckyRewardCommands, superLuckyOdds".
Code (YAML):
10:
name
:
"&c&lBeer"
lore
:
-
"�eff7&lClick to buy for a chance to win!"
-
"�bdf7Price: &f$%price%"
-
"�a1f7Reward: &f$%reward%"
-
"cf7Odds of winning: &f%odds%%"
potionColor
: BLUE
price
: 500
reward
: 1000
superLuckyReward
: 2000
odds
: 50.00
superLuckyOdds
: 5.00
rewardCommands
:
-
"broadcast &c%player% &fhas won &c$%reward% &ffrom the GambleBar!"
superLuckyRewardCommands
:
-
"broadcast &c%player% &fgot very lucky and won &c$%reward% &ffrom the GambleBar!"