Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /bar [<text>]:
- trigger:
- if arg 1 is not set:
- make console execute command "chestcommands open BarBets %player%"
- stop
- if arg 1 is set:
- if arg 1 is "1m":
- give player 1 373:0 named "&CWin or lose $1m"
- make console execute command "eco take %player% 1000000"
- if arg 1 is "5m":
- give player 1 373:0 named "&CWin or lose $5m"
- make console execute command "eco take %player% 5000000"
- if arg 1 is "10m":
- give player 1 373:0 named "&CWin or lose $10m"
- make console execute command "eco take %player% 10000000"
- if arg 1 is "20m":
- give player 1 373:0 named "&CWin or lose $20m"
- make console execute command "eco take %player% 20000000"
- on consume of potion:
- if name of player's held item is "&cWin or lose $1m":
- chance of 50%:
- send "&aYou won!"
- make console execute command "eco give %player% 2000000"
- stop
- else:
- send "&cYou lost :("
- stop
- if name of player's held item is "&cWin or lose $5m":
- chance of 50%:
- send "&aYou won!"
- make console execute command "eco give %player% 10000000"
- stop
- else:
- send "&cYou lost :("
- stop
- if name of player's held item is "&cWin or lose $10m":
- chance of 50%:
- send "&aYou won!"
- make console execute command "eco give %player% 20000000"
- stop
- else:
- send "&cYou lost :("
- stop
- if name of player's held item is "&cWin or lose $20m":
- chance of 50%:
- send "&aYou won!"
- make console execute command "eco give %player% 40000000"
- stop
- else:
- send "&cYou lost :("
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement