How It Works: first type the command "/gamble" then choose the amount you wish to gamble, but be careful as you will loose the amount you gamble, then you will have a 1 in 10 chance of winning, the amount you first gambled will be multiplied by 1.5(adding half of what you gambled)
Code (Text):
plugin:
checkForUpdates: true
global:
# number of ticks the command will wait
# 20 ticks = 1 second
time-wait: 40
min-gamble: 100.00
max-gamble: 1000.00
win:
# this will set the chance, by default it is set to 1/10 chance of winning
chance: 10
# the multiplier is how much the player will win, default is 1.5
multiplier: 1.5
rewards:
# set to 'false' to disable
enabled: true
# write commands without the '/'
# use {player} as player name
reward:
- 'give {player} playerhead 1 player:{player}'
# - 'give {player} diamond 1'
message:
# use '{win}' to output the win amount, and use '{PlayerBal}' for player's balance
win: '&fYou Have Won&a ${win} &fSetting Your Account At&a ${PlayerBal}'
# lose: '' will output the message for when the user is to lose
lose: '&c&lSadly You Did Not Win Anything :('
# use '{betAmount}' & {PlayerBal} to display the player's balance
amountTaken: '&a${betAmount} &fwas taken from your account; remaining: &a${PlayerBal}'