• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

/lottery Command

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.
#1
This Command will let a user bet there in game money for a chance to get some back.

let %bet% = %args%[1]
if %bet% > 99 then goto 5
message %p% [LOTTERY] You must bet at least 100 dollars to use this.
exit
if %bet% < 1000000 then goto 8
message %p% [LOTTERY] You cant bet more then 1000000$!
exit
let %userbal% = playerbalance(%p%)
if %userbal% > %bet% then goto 13
if %userbal% = %bet% then goto 13
message %p% [LOTTERY] You cannot bet more then you have!
exit
let %betresult% = random(1, 100)
if %betresult% = 50 then goto 18
message %p% Sorry %p%, but your bet failed and you lost %bet%!
ascon /takemoney %p% %bet%
exit
let %gain% = %bet% + %bet%
let %online% = onlineplayers()
message %online% %p% JUST WON %gain% WITH /lottery
ascon /givemoney %p% %gain%

I Hope you use this :p change the random(1, 100) to increase or lower the odds of winning!
System make 100% by me!
Amlost posted this wrong lol