$execute unless score @s pay matches $(flatPrice).. run return run function ws:store/flat/fail
$scoreboard players remove @s pay $(flatPrice)
$tag @s add $(flatHouse)$(flatID)
$title @s title [{"translate":"flats.buy","color":"light_purple","bold":true},{"text":"$(flatID)"}]
execute at @s run playsound minecraft:custom.questpassed player @s ~ ~ ~ 1
$setblock $(buttonX) $(buttonY) $(buttonZ) air
$setblock $(forsaleX) $(forsaleY) $(forsaleZ) air