DRAGON19052
Zombi Katili
- Mesajlar
- 195
- En iyi cevaplar
- 0
- Beğeniler
- 15
- Puanları
- 200
Kod:
options:
p: &6&lIstek &7&l>
on login:
delete {istekspam::%player%}
on load:
if file "plugins/Istekler" doesn't exists:
create folder "plugins/Istekler"
command /istek [<text>]:
trigger:
if {istekspam::%player%} is set:
send "{@p} &cBir dahaki isteğini 5 dakika sonra bulunabilirsiniz."
stop
if arg 1 is not set:
send "{@p} &cLütfen isteğinizi belirtiniz."
if arg 1 is set:
if "%{sonistek::%player%}%" is "%arg 1%":
send "{@p} &cHata: Son isteğinizle şuanki isteğiniz aynı olamaz."
if "%{sonistek::%player%}%" is not "%arg 1%":
set {sonistek::%player%} to "%arg 1%"
add "&6Istek: &f%arg 1%||&6Isteyen Kişi: &f%player%||&6Zaman: &f%now%" to {tümistekler::*}
if file "plugins/Istekler/Istekler.yml" doesn't exists:
create file "plugins/Istekler/Istekler.yml"
set "Istek:%arg 1% Isteyen Kişi:%player%" to "-> Zaman:%year%-%month%-%day%-%hour%-%minute%-%second%" in yaml file "plugins/Istekler/Istekler.yml"
send "{@p} &aIsteğiniz istek listesine eklendi."
set {istekspam::%player%} to true
wait 5 minute
delete {istekspam::%player%}
command /istekadmin [<text>]:
permission: istek.admin
permission message: {@p} &cYetkin yok!
trigger:
if arg 1 is not set:
send "{@p} &e/istekadmin &c<liste>&7, &c<temizle>"
if arg 1 is "liste":
if amount of {tümistekler::*} < 1:
send "{@p} &cŞuana kadar hiçbir istek buraya ulaşmamış!"
stop
else:
open chest with 1 row named "&eIstekler" to player
wait 0.50 tick
set {_istek} to 0
loop {tümistekler::*}:
make gui slot {_istek} of player with paper named "&3[&b%loop-index%&3]" with lore "%loop-value%" to close
add 1 to {_istek}
if arg 1 is "temizle":
send "{@p} &eListe temizleniyor!"
wait 2 tick
delete {tümistekler::*}
send "{@p} &aListe temizlendi."
Bu skriptteki hata /istekadmin liste de gözükmüyor.
Yani istek gönderiliyor, dosyaya (yml'ye) gönderiyor ama liste kısmında gözükmüyor. Lütfen acil yardımcı olunuz.