execute unless score #samsung_money value matches 171.. run tellraw @s {"text":"Error! You do not have enough money!","color":"red"}
execute if score #samsung_money value matches 171.. run tellraw @a [{"selector":"@s"},{text:" unlocked "},{"text":"Servers!",click_event:{"action":"show_dialog","dialog":"samsung:upgrades/servers"}}]
execute if score #samsung_money value matches 171.. at @s run playsound minecraft:entity.player.levelup ui @s ~ ~ ~
execute if score #samsung_money value matches 171.. in samsung:samsung_store run function samsung:generation/generate_servers
execute if score #samsung_money value matches 171.. run advancement grant @s only samsung:upgrades/unlock_servers
execute if score #samsung_money value matches 171.. run scoreboard players set #servers_tier value 1
execute if score #samsung_money value matches 171.. run scoreboard players remove #samsung_money value 171