Kod:
function eşyaver(.:player):
clear {_.}'s inventory
send "&6&lMCTR &eEnvanterin geri verildi&f." to {_.}
loop {envanter::%{_.}%::*}:
give loop-value to {_.} if loop-value != any armor
equip {_.} with loop-value if loop-value = any armor
death of player:
cancel drops if victim's metadata "OYUN" = 1
respawn:
player's metadata "OYUN" = 1
reset player's title
clear player's inventory
eşyaver(player)
delete player's metadata "OYUN"
join:
eşyaver(player) if player's metadata "OYUN" = 1
command oyun:
trigger:
player's metadata "OYUN" isn't set:
player's inventory isn't empty:
delete {envanter::%player%::*}
set player's metadata "OYUN" to 1
send title "&e&lEŞYALAR VERİLDİ!" with subtitle "&f&ooyun başladı." to player
send "&6&lMCTR &eEşyaların kaydedildi&f, &esana savaş eşyaları verildi&f."
send "&6&lMCTR &eEşyalarına geri dönmek için &f/oyun &ekomutunu kullan&f."
loop items in player's inventory:
add loop-item to {envanter::%player%::*}
clear player's inventory
give an iron sword to player
give a flint and steel to player
give a fishing rod to player
give a bow to player
give 64 cobblestone to player
give 64 oak wood to player
give 3 golden apple to player
give 16 arrow to player
equip player with iron helmet, iron chestplate, iron leggings and iron boots
stop
send "&6&lMCTR &eEnvanterinde eşya olmak zorunda."
stop
eşyaver(player)
send title "&6&lOYUN BİTTİ!" with subtitle "&f" to player
delete {envanter::%player%::*}
delete player's metadata "OYUN