command /market:
trigger:
open chest with 5 rows named "&4&lMarket" to player
format slot 10 of player with diamond helmet named "&b&lDiamond Helmet" with lore "&b32 elmas" to close then run "elmaskaskal %player%"
format slot 19 of player with diamond chestplate named "&b&lDiamond Chestplate" with lore "&b64 elmas" to close then run "elmaschestal %player%"
format slot 20 of player with diamond sword named "&b&lDiamond Sword" with lore "&b16 elmas" to close then run "elmasswordal %player%"
format slot 28 of player with diamond leggings named "&b&lDiamond Leggings" with lore "&b64 elmas" to close then run "elmaspaltal %player%"
format slot 37 of player with diamond boots named "&b&lDiamond Boots" with lore "&b32 elmas" to close then run "elmasbotal %player%"
command /elmaskaskal <player>:
executable by:console
trigger:
if arg 1 has 32 diamond:
give 1 diamond helmet to arg 1
send "&b&lDiamond Helmet &a&lalindi!" to arg 1
remove 32 diamond from arg 1
else:
send "&c&lYeterli elmasin yok!" to arg 1
command /elmaschestal <player>:
executable by:console
trigger:
if arg 1 has 64 diamond:
give 1 diamond chestplate to arg 1
send "&b&lDiamond Chestplate &a&lalindi!" to arg 1
remove 64 diamond from arg 1
else:
send "&c&lYeterli elmasin yok!" to arg 1
command /elmaspaltal <player>:
executable by:console
trigger:
if arg 1 has 64 diamond:
give 1 diamond leggings to arg 1
send "&b&lDiamond Leggings &a&lalindi!" to arg 1
remove 64 diamond from arg 1
else:
send "&c&lYeterli elmasin yok!" to arg 1
command /elmasbotal <player>:
executable by:console
trigger:
if arg 1 has 32 diamond:
give 1 diamond boots to arg 1
send "&b&lDiamond Boots &a&lalindi!" to arg 1
remove 32 diamond from arg 1
else:
send "&c&lYeterli elmasin yok!" to arg 1
command /elmasswordal <player>:
executable by:console
trigger:
if arg 1 has 16 diamond:
give 1 diamond sword to arg 1
send "&b&lDiamond Sword &a&lalindi!" to arg 1
remove 16 diamond from arg 1
else:
send "&c&lYeterli elmasin yok!" to arg 1