So im on minehut and I created this roulette command and when I execute the command /roulette red 100000 nothing happens, there are no errors in the skript. but when I do the command nothing pops up in the chat and I cant seem to figure it out.
command /roulette <text> [<integer>]:
trigger:
set {_red} to 0
set {_black} to 0
set {_choose} to 0
if arg 1 is "red":
if arg 2 is greater than {balance::%player%}:
message "&4&lYou cannot bet an amount more than your current balance!"
else if arg 2 is less than {balance::%player%}:
set {_choose} to a random integer between 1 and 2
if {_choose} is 1:
set {_red} to arg 2
message "&7&lYou were lucky and won &a&l%{_red}%&7&l!"
add {_red} to {balance::%player%}
set {_red} to 0
else if {_choose} is 2:
set {_red} to arg 2
message "&c&lYou were unlucky and lost &4&l%{_red}%&c&l!"
subtract {_red} from {balance::%player%}
set {_red} to 0
else if arg 1 is "black":
if arg 2 is greater than {balance::%player%}:
message "&4&lYou cannot bet an amount more than your current balance!"
else if arg 2 is less than {balance::%player%}:
set {_choose} to a random integer between 1 and 2
if {_choose} is 1:
set {_black} to arg 2
message "&7&lYou were lucky and won &a&l%{_black}%&7&l!"
add {_black} to {balance::%player%}
set {_black} to 0
else if {_choose} is 2:
set {_black} to arg 2
message "&c&lYou were unlucky and lost &4&l%{_black}%&c&l!"
subtract {_black} from {balance::%player%}
set {_black} to 0
else:
message "&c&lYou have entered the command wrong, please try again!"
command /roulette <text> [<integer>]:
trigger:
set {_red} to 0
set {_black} to 0
set {_choose} to 0
if arg 1 is "red":
if arg 2 is greater than {balance::%player%}:
message "&4&lYou cannot bet an amount more than your current balance!"
else if arg 2 is less than {balance::%player%}:
set {_choose} to a random integer between 1 and 2
if {_choose} is 1:
set {_red} to arg 2
message "&7&lYou were lucky and won &a&l%{_red}%&7&l!"
add {_red} to {balance::%player%}
set {_red} to 0
else if {_choose} is 2:
set {_red} to arg 2
message "&c&lYou were unlucky and lost &4&l%{_red}%&c&l!"
subtract {_red} from {balance::%player%}
set {_red} to 0
else if arg 1 is "black":
if arg 2 is greater than {balance::%player%}:
message "&4&lYou cannot bet an amount more than your current balance!"
else if arg 2 is less than {balance::%player%}:
set {_choose} to a random integer between 1 and 2
if {_choose} is 1:
set {_black} to arg 2
message "&7&lYou were lucky and won &a&l%{_black}%&7&l!"
add {_black} to {balance::%player%}
set {_black} to 0
else if {_choose} is 2:
set {_black} to arg 2
message "&c&lYou were unlucky and lost &4&l%{_black}%&c&l!"
subtract {_black} from {balance::%player%}
set {_black} to 0
else:
message "&c&lYou have entered the command wrong, please try again!"