execute unless score #samsung_accounts_unlocked value matches 1.. unless score #one_ui_version value matches 7.. run return run tellraw @s [{"text":"Error! You need ","color":"red"},{"text":"Samsung Accounts","click_event":{"action":"show_dialog","dialog":"samsung:upgrades/devices/samsung_accounts"}}," and One UI 7 or later to buy ",{"text":"Galaxy AI","click_event":{"action":"show_dialog","dialog":"samsung:upgrades/devices/galaxy_ai"}},"!"]
execute unless score #samsung_accounts_unlocked value matches 1.. run return run tellraw @s [{"text":"Error! You need ","color":"red"},{"text":"Samsung Accounts","click_event":{"action":"show_dialog","dialog":"samsung:upgrades/devices/samsung_accounts"}}," to buy ",{"text":"Galaxy AI","click_event":{"action":"show_dialog","dialog":"samsung:upgrades/devices/galaxy_ai"}},"!"]
execute unless score #one_ui_version value matches 7.. run return run tellraw @s [{"text":"Error! You need ","color":"red"},{text:"One UI 7 or later to buy "},{"text":"Galaxy AI","click_event":{"action":"show_dialog","dialog":"samsung:upgrades/devices/galaxy_ai"}},"!"]
execute unless score #samsung_money value matches 500.. run tellraw @s {"text":"Error! You do not have enough money!","color":"red"}