SupremeGamble
Description
SupremeGamble allows players to buy gambling drinks (money boosters) from a menu via the NPC in spawn. When a player right-clicks their drink, they will either win or lose, depending on the odds of the drink. If they win, they receive a configurable amount of money.

Commands
/supremegable open
<configurable>
Opens the gamble menu where you can purchase the gamble drinks.
/supremegamble give <player> <drink>
<configurable>
Gives the selected drink to the specified player.
/supremegamble reload
<configurable>
Reloads the plugin.
General options
Menu size
# Gui rows
menu-rows: 3 # 1-6
Animated menu
You can animate the gamble menu with different colors.
# Animation in main menu
animated-menu:
delay: 25 # In ticks
items:
- 'ORANGE_STAINED_GLASS_PANE'
- 'YELLOW_STAINED_GLASS_PANE'
Titles
# Warning titles
titles:
full-inventory: # Title when a player doesn't have space in his inventory
title: '&cPurchase failed'
subtitle: '&7Your inventory is full'
fadein: 20
staytime: 60
fadeout: 20
insufficient-funds: # Title when a player has not enough money
title: '&cPurchase failed'
subtitle: '&7You have insufficient funds'
fadein: 20
staytime: 60
fadeout: 20
Sounds
Almost every can be configured to have it's own sound.
# Configurable sounds
sounds:
close: []
reveal:
- 'BLOCK_ANVIL_LAND;3.0;10.0'
end:
- 'ENTITY_DRAGON_FIREBALL_EXPLODE;3.0;50.0'
cooldown:
- 'ENTITY_VILLAGER_NO;10.0;5.6'
maximum-amount:
- 'ENTITY_VILLAGER_NO;10.0;5.6'
success-purchase:
- 'ENTITY_ITEM_PICKUP;1.0;1.0'
inventory-full:
- 'ENTITY_VILLAGER_NO;10.0;5.6'
insufficient-funds:
- 'ENTITY_VILLAGER_NO;10.0;5.6'
economy-not-found:
- 'ENTITY_VILLAGER_NO;10.0;5.6'
move-item: []
open-menu: []
close-menu: []
Permissions
# Permissions
permissions:
main-command: 'supremegamble.command.use'
open-menu-command: 'supremegamble.command.openmenu'
Adding a gambling drink
Adding your own gambling drink is very easy, just copy this section and change it to a free slot. (potions.yml)
booster1:
menu:
type: AWKWARD
slot: 11
cost: 300
currency: VAULT
name: '&e&lMoney booster 1'
glow: true
lore:
- '&7Test your luck with this'
- '&7special drink.'
- ''
- '&fInformation:'
- ' &8◊ &7Price: &2$&a{price}'
- ' &8◊ &7Jackpot: &2$&a{reward}'
- ''
- '&fJackpot:'
- ' &8◊ &7Chance: &e{chance}%'
- ''
- '&a&lClick here &7to purchase.'
item:
type: AWKWARD
reward: 875
currency: VAULT
name: '&e&lMoney booster 1'
glow: true
lore:
- ''
- '&fJackpot: &2$&a{reward}'
- ''
- '&7The chance of winning the'
- '&7jackpot is &e{chance}%&7!'
titles:
win:
fadein: 20
staytime: 60
fadeout: 20
title: '&e&lCongrats!'
subtitle: '&7+${reward}'
lose:
fadein: 20
staytime: 60
fadeout: 20
title: ''
subtitle: '&7Maybe next time...'
chance: 30
win-sounds:
- 'ENTITY_PLAYER_LEVELUP;1.0;0.3'
lose-sounds:
- 'ENTITY_VILLAGER_NO;1.0;1.0'
win-particles:
- 'FLAME;10'
lose-particles:
- 'VILLAGER_ANGRY;10'
win-firework-colors:
- 'WHITE'
- 'YELLOW'
- 'ORANGE'
- 'ORANGE'
lose-firework-colors:
- 'GRAY'
- 'GRAY'
- 'GRAY'
- 'GRAY'
Useful links
Material
Last updated