Options:
p: &5&lSENARIST &e>
KufurBypass: kufur.admin
Perm-Msg: &cBunun icin yetkin yok!
Variables:
{Kufur.Koruma} = true
Command /Kufur [<Text>] [<Text>]:
permission: kufur.admin
permission message: {@p} {@Perm-Msg}
trigger:
if arg 1 is not set:
send "{@p} &3/&bKufur &3[&bOn/Off/Ekle/Kaldir/Liste/Temizle&3] &3[&bKelime&3]"
stop
else:
if arg 1 is "help" or "yardim":
send "{@p} &3/&bKufur &3[&bOn/Off/Ekle/Kaldir/Liste/Temizle&3] &3[&bKelime&3]"
stop
if arg 1 is "on":
if {Kufur.Koruma} is true:
send "{@p} &aKüfür koruması zaten açık!"
stop
else:
set {Kufur.Koruma} to true
send "{@p} &aKüfür koruması açıldı!"
stop
if arg 1 is "off":
if {Kufur.Koruma} is false:
send "{@p} &cKüfür koruması zaten kapalı!"
stop
else:
set {Kufur.Koruma} to false
send "{@p} &cKüfür koruması kapatıldı!"
stop
if arg 1 is "ekle":
if {%arg 2%.yasakli.kufur} is true:
send "{@p} &cBu kelime zaten yasaklı!"
stop
else:
add arg 2 to {y.kufurler::*}
set {%arg 2%.yasakli.kufur} to true
send "{@p} %arg 2% yasaklı kelimelere eklendi!"
stop
if arg 1 is "kaldir":
if {%arg 2%.yasakli.kufur} is false:
send "{@p} &cBu kelime zaten yasaklı değil!"
stop
else:
remove arg 2 from {y.kufurler::*}
set {%arg 2%.yasakli.kufur} to false
send "{@p} %arg 2% yasaklı kelimelerden çıkartıldı!"
stop
if arg 1 is "liste":
if arg 2 is set:
stop
else:
if amount of {y.kufurler::*} < 1:
send "{@p} &cHenüz bir kelime yasaklanmamış."
send "{@p} &7/Kufur Ekle [Kelime]"
stop
else:
send "{@p} &aYasaklı kelimeler listesi hazırlanıyor..."
wait 1 seconds
loop {y.kufurler::*}:
send "{@p} &b[&3%loop-index%&b] &3%loop-value%"
if arg 1 is "temizle":
if arg 2 is set:
stop
else:
if amount of {y.kufurler::*} < 1:
send "{@p} &cZaten yasaklı bir kelime yok!"
send "{@p} &7/Kufur Ekle [Kelime]"
stop
else:
send "{@p} &aYasaklı kelimeler siliniyor..."
wait 1 seconds
loop {y.kufurler::*}:
send "{@p} &b[&3%loop-index%&b] &3%loop-value%&c, silindi."
set {%loop-value%.yasakli.kufur} to false
remove loop-value from {y.kufurler::*}
on chat:
if {Kufur.Koruma} is true:
loop {y.kufurler::*}:
set {_ymsg} to loop-value
set {_msg} to message
if {_ymsg} contains {_msg}:
send "{@p} &c%loop-value% yasaklı bir kelimedir!"
cancel event