command /kod [<text>]:
trigger:
if {kod::*} contains arg 1:
remove arg 1 from {kod::*}
execute console command "eco give %player% %{kodpara::%arg 1%}%"
send "&aKod girildi! Hesabına %{kodpara::%arg 1%}% TL aktarıldı!" to player
else:
send "&cLütfen geçerli bir kod gir!" to player
command /kodbelirle [<text>] [<int>]:
trigger:
if player is op:
if arg 1 is set:
if arg 2 is set:
add arg 1 to {kod::*}
set {kodpara::%arg 1%} to arg 2
send "&aKod belirlendi!" to player
else:
send "&cGeçersiz kullanım! &4/kodbelirle <kod> <kodparası>" to player
else:
send "&cGeçersiz kullanım! &4/kodbelirle <kod> <kodparası>" to player
else:
send "&cYetersiz yetki!" to player
command /kodliste:
trigger:
if player is op:
send "&6Kodlar:"
send "&7%{kod::*}%"
else:
send "&cYetersiz yetki!" to player
command /kodsil [<text>]:
trigger:
if player is op:
if {kod::*} contains arg 1:
remove arg 1 from {kod::*}
send "&cMevcut kod silindi!" to player
else:
send "&cBöyle bir kod bulunamadı. Kodları listelemek için: /kodliste" to player
else:
send "&cYetersiz yetki!" to player