options:
p: &6 Kaptan &8»&e
rondorfiyat: 10
command /kaptan [<text>]:
trigger:
if arg 1 is "hiz" or "hız":
if player's balance is greater than or equal to {@rondorfiyat}:
execute console command "give %player% 351:10 1 name:&eHız"
execute console command "eco take %player% {@rondorfiyat}"
send "{@p} &a{@rondorfiyat}'e hız tılsımı aldın!"
else:
send "{@p} &cBakiyen yetersiz!"
# =========================================================
on rightclick with 351:10:
if tool's display name is "&eHız":
remove 1 of player's tool named "&eHız" from player's tool
send "{@p} Başarıyla hız tılsımını kullandın!"
# GUI
command /randomteleport:
trigger:
open chest with 1 row named "&6&l Kaptan" to player
format slot 1 of player with dirt named "&6Rondor" with lore "&7Ücret » &b10 Kinas" to close