command /spmarket:
trigger:
open chest with 1 row named "&8&lSpawner Al" to player
wait 2 ticks
format slot 4 of player with diamond block named "&eElmas Blok Spawner" with lore "&8| &f&l1.900.000.000TL &8|" to close then run [execute player command "elmasbal"]
format slot 8 of player with iron block named "&fDemir Blok Spawner" with lore "&8| &f&l19.000.000TL &8|" to close then run [execute player command "demirbal"]
command /elmasbal:
trigger:
if player's balance is bigger than or equal to 1900000000:
remove 1900000000 from player's balance
execute console command "/itemspawner ver %player% elmasblok 1"
send player title "&a✔" with subtitle "&aİşlem Başarılı!" for 2 seconds
else:
send player title "&4✘" with subtitle "&cYetersiz Para" for 2 seconds
command /demirbal:
trigger:
if player's balance is bigger than or equal to 19000000:
remove 19000000 from player's balance
execute console command "/itemspawner ver %player% demirblok 1"
send player title "&a✔" with subtitle "&aİşlem Başarılı!" for 2 seconds
else:
send player title "&4✘" with subtitle "&cYetersiz Para" for 2 seconds