Setup config: (If you wanna enable broadcast wins just add in BroadcastWins: true and the message BroadcastWin: 'msg'
Code (Text):
# You can set up to 54 slots, Please be sure slot numbers are unique and not sharing
# Supports only ONE line of lore
#
# Need support? Connect to my discord: https://discord.gg/CGfZzBzQ7F
# FORMAT
# Drinks:
# Vodka: | Identifier for your drink
# name: | Name of your drink color codes supported!
# slot: 0 | Where in the GUI this drink will live
# color: | Sets the color of the drink
# lore: | One line supported + Color codes!
# - 'lore'
# chance: | Percent chance of winning. Don't include "%"
# cost: | How much the drink will cost
# win: | If they win, how much will they get?
BroadcastWins: true
Drinks:
Vodka:
name: '&b&lVodka'
slot: 0
color: 65430
#Supporting RGB colors! Use this site for reference: http://www.shodor.org/~efarrow/trunk/html/rgbint.html
#Use RGB Int ^^
lore:
- '&7The best drink to exist!'
chance: 50
cost: 100
win: 200
### MESSAGES ###
WinMessage: '&dCongratulations you have won!'
LossMessage: '&cSorry, you lost!'
Insufficient: '&cSorry, you have insufficient funds!'
BroadcastWin: '%player% &ahas just won &2$&b%reward% &afrom a %drink%!'
### PERMISSIONS ###
# gamble.use - Allows use of /gamble
# gamble.reload - Reloads the config file
There was a game breaking bug in the code which has been fixed. The bug had to do with two players having inventories open, this causing the events clash. Fixed this and cleaned up a major portion of the code last minute! Happy Drinking!
Removed:
%player% placeholder ( Future update will include more placeholders for broadcasted win messages if so chosen in the config! )
I started from scratch on this one. I am looking forward to hearing feedback! Please join the discord to suggest new features or receive support! Consider donating as time is money