Berat04004
Fırında Isıttığım İlk Taş
- Katılım
- 5 Mart 2022
- Mesajlar
- 83
- Elmaslar
- 43
- Puan
- 655
- Minecraft
- SaDRaZaM02
Discord:
Berat02#6167
Uzun zaman sonra tekrardan merhaba.
Antalyadaydım şimdi ise döndüm.
Bu gün sizlere yaklaşık 30 dakikamı ayırdığım gelişmiş ve çok güzel bir sistem olan
Kod skriptini tanıtacağım.
Bu skript ile sunucunuzda sizin belirlediğiniz gizli kodlar oluşturabilirsiniz.
Ve daha sonra isterseniz o kodu yok edebilirsiniz.
Oluşturduğunuz kodu oyuncular ve sizde kullanabilirsiniz.
Ayrıca sunucuda hangi kodların olduğunu unuttuysan "/kod liste" komutu ile
Bütün aktif olan kodları bulabilirsiniz.
Ve daha önce oluşturduğun kodları kimlerin kullandığını görmek istersen
"/kod kullananlar <aktif bir kod>" komutu kullanabilirsiniz.
Haydi koda geçelim!
Antalyadaydım şimdi ise döndüm.
Bu gün sizlere yaklaşık 30 dakikamı ayırdığım gelişmiş ve çok güzel bir sistem olan
Kod skriptini tanıtacağım.
Bu skript ile sunucunuzda sizin belirlediğiniz gizli kodlar oluşturabilirsiniz.
Ve daha sonra isterseniz o kodu yok edebilirsiniz.
Oluşturduğunuz kodu oyuncular ve sizde kullanabilirsiniz.
Ayrıca sunucuda hangi kodların olduğunu unuttuysan "/kod liste" komutu ile
Bütün aktif olan kodları bulabilirsiniz.
Ve daha önce oluşturduğun kodları kimlerin kullandığını görmek istersen
"/kod kullananlar <aktif bir kod>" komutu kullanabilirsiniz.
Haydi koda geçelim!
JavaScript:
options:
#|----------\ Genel Ayarlar /----------|#
permission: code.admin
p: &a&lKOD &7&l»
adminArg1İsNotMessageP: &c&l-----[ &4&lCODE ADMIN &c&l]-----
playerArg1İsNotMessageP: &e&l-----[ &6&lCODE PLAYER &e&l]-----
#|----------\ Genel Ayarlar /----------|#
#|----------\ Mesajlar /----------|#
kodOlusturİsimHata: &cOluşturmak istediğiniz kodu yazın.
kodOlusturBoyleBirKodVar: &cBelirttiğiniz kod zaten var!
kodOlusturBasarili: &aİsimli kod başarıyla oluşturuldu.
kodKaldirİsimHata: &cKaldırmak istediğiniz kodu yazın.
kodKaldirBoyleBirKodYok: &cBelirttiğiniz kod daha önceden kaldırılmış yada hiç bir zaman yoktu!
kodKaldirBasarili: &aİsimli kod başarıyla kaldırıldı.
kodKullanİsimHata: &cKullanmak istediğin kodu yaz.
kodKullanZatenKullanmissin: &cBu kodu daha önceden zaten kullanmışsın
kodKullanBasarili: &aİsimli kod doğrulandı! &2Herhangi bir yetkiliye ulaş.
kodKullanBöyleBirKodYok: &cKullanmak için belirttiğin kod bulunamadı.
kodKullanBasariliTitle: &a&lDOGRULANDI
kodKullanBasariliSubTitle: &2Belirttiğin kod doğrulandı. Tebrikler!
kodListe: &aAktif &2olan bütün &akodlar &2aşağıda sıralandı
kodKullananlarHangiKodİsim: &cOyuncuların hangi kodu kullandığını görmek istediğini yaz.
kodKullananlarBöyleBirKodYok: &cBelirttiğiniz kod bulunamadı!
kodKullananlarBasarili: &aİsimli kodu kullanan bütün oyuncular
#|----------\ Mesajlar /----------|#
function admin(.: player):
send "{@adminArg1İsNotMessageP}" to {_.}
send "&a" to {_.}
send "&7> &b/kod oluştur &9<kod>" to {_.}
send "&7> &b/kod kaldır &9<aktif bir kod>" to {_.}
send "&7> &b/kod liste" to {_.}
send "&7> &b/kod kullananlar" to {_.}
send "&7> &b/kod kullan &9<kod>" to {_.}
send "&a" to {_.}
send "{@adminArg1İsNotMessageP}" to {_.}
function oyuncu(p: player):
send "{@playerArg1İsNotMessageP}" to {_p}
send "&a" to {_p}
send "&7> &b/kod kullan &9<kod>" to {_p}
send "&a" to {_p}
send "{@playerArg1İsNotMessageP}" to {_p}
command kod [<text>] [<text>]:
aliases: code
trigger:
if player has permission "{@permission}":
if arg 1 is not set:
admin(player)
else:
if arg 1 is "oluştur" or "olustur" or "kaldır" or "sil" or "liste" or "kullananlar" or "kullan":
if arg 1 is "oluştur" or "olustur":
if arg 2 is not set:
send "{@p} {@kodOlusturİsimHata}"
else:
if arg 2 is "%{code::%arg-2%}%":
send "{@p} {@kodOlusturBoyleBirKodVar}"
else:
set {code::%arg-2%} to arg-2
send "{@p} &2%arg-2% {@kodOlusturBasarili}"
else:
if arg 1 is "kaldır" or "sil":
if arg 2 is not set:
send "{@p} {@kodKaldirİsimHata}"
else:
if arg 2 is "%{code::%arg-2%}%":
delete {code::%arg-2%}
delete {codeStatus::%arg-2%::%player%}
delete {codeStatus2::%arg-2%::%player%}
send "{@p} &2%arg-2% {@kodKaldirBasarili}"
else:
send "{@p} {@kodKaldirBoyleBirKodYok}"
else:
if arg 1 is "liste":
send "{@p} {@kodListe}:"
send "&a"
loop {code::*}:
send "{@p} &e%loop-index%"
if {code::*} is not set:
send "{@p} &cAktif Olan Hiç Bir Kod Bulunamadı!"
else:
if arg 1 is "kullananlar":
if arg 2 is not set:
send "{@p} {@kodKullananlarHangiKodİsim}"
else:
if arg 2 is "%{code::%arg-2%}%":
send "{@p} &2%arg-2% {@kodKullananlarBasarili}:"
send "&a"
loop {codeStatus2::%arg-2%::*}:
send "{@p} &e%loop-index%"
if {codeStatus2::%arg-2%::*} is not set:
send "{@p} &cBu kodu kullanan kimse yok."
else:
send "{@p} {@kodKullananlarBöyleBirKodYok}"
else:
if arg 1 is "kullan":
if arg 2 is not set:
send "{@p} {@kodKullanİsimHata}"
else:
if arg 2 is "%{code::%arg-2%}%":
if {codeStatus::%arg-2%::%player%} is true:
send "{@p} {@kodKullanZatenKullanmissin}"
else:
set {codeStatus::%arg-2%::%player%} to true
set {codeStatus2::%arg-2%::%player%} to player
send "{@p} &2%arg-2% {@kodKullanBasarili}"
send player title "{@kodKullanBasariliTitle}" with subtitle "{@kodKullanBasariliSubTitle}"
else:
send "{@p} {@kodKullanBöyleBirKodYok}"
else:
admin(player)
else:
admin(player)
else:
if arg 1 is not set:
oyuncu(player)
else:
if arg 1 is "kullan":
if arg 1 is "kullan":
if arg 2 is not set:
send "{@p} {@kodKullanİsimHata}"
else:
if arg 2 is "%{code::%arg-2%}%":
if {codeStatus::%arg-2%::%player%} is true:
send "{@p} {@kodKullanZatenKullanmissin}"
else:
set {codeStatus::%arg-2%::%player%} to true
set {codeStatus2::%arg-2%::%player%} to player
send "{@p} &2%arg-2% {@kodKullanBasarili}"
send player title "{@kodKullanBasariliTitle}" with subtitle "{@kodKullanBasariliSubTitle}"
else:
send "{@p} {@kodKullanBöyleBirKodYok}"
else:
oyuncu(player)