command /spawnermarket [<text>]:
trigger:
if arg 1 is not set:
open chest with 2 rows named " &7> &aSpawner Listesi" to player
wait 1 tick
format slot 0 of player with spawner named "IRON GOLEM | 5M" to close then run [make player execute "spawnermarket golem"]
format slot 1 of player with spawner named "ZOMBI | 2M" to close then run [make player execute "spawnermarket zombi"]
format slot 2 of player with spawner named "ISKELET | 2M" to close then run [make player execute "spawnermarket iskelet"]
format slot 3 of player with spawner named "ORUMCEK | 2M" to close then run [make player execute "spawnermarket orumcek"]
format slot 4 of player with spawner named "BLAZE | 2M" to close then run [make player execute "spawnermarket blaze"]
format slot 5 of player with spawner named "DOMUZ ADAM | 3M" to close then run [make player execute "spawnermarket domuzadam"]
format slot 6 of player with spawner named "KARDAN ADAM | 1M" to close then run [make player execute "spawnermarket kardanadam"]
format slot 8 of player with spawner named "CIKIS" to close
if arg 1 is "golem":
if player's balance is bigger than or equal to 5000000:
execute console command "ss give %player% golem 1"
send " &7> &a5M'ye GOLEM spawnerı aldın!"
else:
send " &7> &cYeteri kadar paran yok."
if arg 1 is "zombi":
if player's balance is bigger than or equal to 2000000:
execute console command "ss give %player% zombie 1"
send " &7> &a2M'ye ZOMBI spawnerı aldın!"
else:
send " &7> &cYeteri kadar paran yok."
if arg 1 is "iskelet":
if player's balance is bigger than or equal to 2000000:
execute console command "ss give %player% skeleton 1"
send " &7> &a2M'ye ISKELET spawnerı aldın!"
else:
send " &7> &cYeteri kadar paran yok."
if arg 1 is "orumcek":
if player's balance is bigger than or equal to 2000000:
execute console command "ss give %player% spider 1"
send " &7> &a2M'ye ORUMCEK spawnerı aldın!"
else:
send " &7> &cYeteri kadar paran yok."
if arg 1 is "blaze":
if player's balance is bigger than or equal to 2000000:
execute console command "ss give %player% blaze 1"
send " &7> &a2M'ye BLAZE spawnerı aldın!"
else:
send " &7> &cYeteri kadar paran yok."
if arg 1 is "domuzadam":
if player's balance is bigger than or equal to 3000000:
execute console command "ss give %player% pigman 1"
send " &7> &a3M'ye DOMUZ ADAM spawnerı aldın!"
else:
send " &7> &cYeteri kadar paran yok."
if arg 1 is "kardanadam":
if player's balance is bigger than or equal to 1000000:
execute console command "ss give %player% snowman 1"
send " &7> &a1M'ye KARDAN ADAM spawnerı aldın!"
else:
send " &7> &cYeteri kadar paran yok."