execute unless score @s pay matches 10000.. run return run function ws:store/objorka/fail
scoreboard players remove @s pay 10000
title @s title {"translate":"business.success","color":"light_purple","bold":true}
tag @s add objorka
execute at @s run playsound minecraft:custom.questpassed player @s ~ ~ ~
execute positioned -1920 42 -2004 run kill @e[type=minecraft:area_effect_cloud,limit=2,sort=nearest]
setblock -1920 42 -2004 air
scoreboard players add @s income 15
scoreboard players add @s businesscount 1
tellraw @s {"translate":"objorka.bonuses"}