Gamble Drinks [Full Revamp & Recode] V1.0.5 icon

Gamble Drinks [Full Revamp & Recode] V1.0.5 -----

New drink gambling plugin with more features coming!




NEW:
  • You can enable broadcast messages when winning!
  • - Patched a bug with the Inventoryclickevents
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
----------, Mar 22, 2023

There was an issue when adding multiple drinks.
----------, Mar 18, 2023

Added Metrics

Using BStats, allows I as the plugin dev to see data to help improve the plugin!
----------, Mar 15, 2023

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!
----------, Mar 15, 2023

NEW
  • RGB Color for drinks
  • Add more drinks from the config!
  • Set your own slots for each drink!
  • Add a line of lore to drinks
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 :D
----------, Mar 15, 2023

New:

Build in placeholder: %player%
Can be used in Win, and lose message.
Can also be used in item lore in name if wanted.

Other:

Cleaned up some unneeded code.
----------, Jul 14, 2021

Resource Information
Author:
----------
Total Downloads: 364
First Release: Jul 13, 2021
Last Update: Mar 22, 2023
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings