execute unless score @s casino.chips matches 10.. run return run function ws:store/casino/fail {msg:'nochips'}
scoreboard players operation @s casino.chips *= .casino.chips.9 casino.chips
scoreboard players operation @s casino.chips /= .casino.chips.10 casino.chips
tellraw @s [{"translate":"casino.transaction","bold":true},{"color":"dark_green","score":{"name":"*","objective":"casino.chips"}},"$"]
scoreboard players operation @s pay += @s casino.chips
scoreboard players operation @s pay.legal -= @s casino.chips
scoreboard players set @s casino.chips 0
execute at @s run playsound minecraft:entity.arrow.hit_player player @s ~ ~ ~