Birsürü tab hatası var yardım edin lütfen.

SheepNetwork

Ağaç Yumruklayıcı
En iyi cevaplar
0
Kod:
#SheepNetwork Official Skript   |
#ChatManager (Sohbet Yöneticisi)|
#-------------------------------|
#Version: 0.1                   |
#Date: 7.10.2017                |
#------------------------------------------------------------------------------------------------------------------------------
#Ayarlar
options:
    no-prm: &4Bu komutu kullanmak için yetkiniz yok!
    prefix: &c[&aSH&eCM&c]
    versiondate: 4.10.2017
    version: 0.0.1
#-------------------------------------------------------------------------------------------------------------------------------
#Ana Komut
#-------------------------------------------------------------------------------------------------------------------------------
command /shcm [<text>] [<text>] [<text>]:
    usage: &c/shcm [<komut>] [<komut>]
    permission: shcm.anakomut
    permission message: {@prefix} {@no-prm}
    trigger:
        if arg 1 is not set:
            if player has permission "shcm.*" or "shcm.komutac":
                message "{@prefix} Lütfen /sohbet yardım şeklinde yazınız."
        if arg 1 is set:
            if arg 1 is "komut":
                if player has permission "shcm.bilgi" or "shcm.*":
                    message "&6/sohbet bilgi &e-- Skriptin bilgisini gösterir"
                    message "&6/sohbet ac &e-- Sohbeti acar"
#-------------------------------------------------------------------------------------------------------------------------------
#Sohbet Aç/Kapat   
#-------------------------------------------------------------------------------------------------------------------------------               
            else if arg 1 is "sohbet":
                if arg 2 is not set:
                    send "{@prefix} Sohbeti açmak için &d/shcm sohbet ac"
                    send "{@prefix} Sohbeti kapatmak için &d/shcm sohbet kapat"
                if arg 2 is "ac":
                    if player has the permission "shcm.sohbet.ac" or "shcm.*" or "shcm.sohbetackapat":
                        broadcast "{@prefix}"
                        set {chat.disabled} to false
                if arg 2 is "kapat":
                    if player has the permission "shcm.sohbet.kapat" or "shcm.*" or "shcm.sohbetackapat":
                        broadcast "&7&m-----------------"
                        broadcast " "
                        broadcast "&cSohbet kapatıldı!"
                        broadcast ""
                        broadcast "&7&m-----------------"
                        set {chat.disabled} to true
on chat:
    if {chat.disabled} is true:
        player doesn't have permission "sohbet.bypass"
        message "{@prefix} &4Sohbet Kapalıyken Konuşamazsın."
        cancel event
#-------------------------------------------------------------------------------------------------------------------------------
#Skript Bilgi Kısmı
#-------------------------------------------------------------------------------------------------------------------------------
            else if arg 1 is "bilgi":
                if player has permission "shcm.bilgi" or "shcm.*":
                    message "&7&l&m-----------------"
                    message "&4Sheep Chat Manager"
                    message "&cSkript Sürüm: &7{@version}"
                    message "&cSürüm Tarihi: &7{@versiondate}"
                    message "&7&l&m-----------------"
#-------------------------------------------------------------------------------------------------------------------------------
#Skriptin Yetkileri
#-------------------------------------------------------------------------------------------------------------------------------
            else if arg 1 is "yetkiler":
                if player has permission "shcm.komutlar" or "shcm.*":
                    message "&7&l&m--------------------------"
                    message "&bKomut      &7:      &aYetki"
                    message "&bBütün komutların yetkisi ---> shcm.*"
                    message "&b/shcm sil ---> shcm.sohbetsil"
                    message "&b/shcm sohbet ac ---> shcm.sohbet.ac"
                    message "&b/shcm sohbet kapat ---> shcm.sohbet.kapat"
                    message "&b/shcm yavaslat ac ---> shcm.sohbet.kapat"
#-------------------------------------------------------------------------------------------------------------------------------
#Sohbeti Sil
#-------------------------------------------------------------------------------------------------------------------------------
            else if arg 1 is "sil":
                if player has permission "shcm.sohbetsil" or "shcm.*":
                    loop 100 times:
                        send "" to all players
                    send "&cSohbet &4%player% &cTarafından Temizlendi !" to all players       
#-------------------------------------------------------------------------------------------------------------------------------
#Sohbet Yavaşlat/Normal
#-------------------------------------------------------------------------------------------------------------------------------       
            if arg 1 is "yavaslat":
                else if arg 1 is "yetkiler"
                if arg 2 is "ac":
                    set {yavaslama} to true
                    broadcast "{@oyuncuprefix} sohbet yavaslatıldı"
                if arg 2 is "kapat" or "normal":
                    set {yavaslama} to false
                    broadcast "{@oyuncuprefix} sohbet normale döndü"
on chat:
    if player doesn't have permission "op":
        if {yavaslama} is true:
            if {yav.%player%} is true:
                cancel event
                send "&7Sadece 3 saniyede bir konuşabilirsin"
            else:
                set {yav.%player%} to true
                wait 3 seconds
                delete {yav.%player%}
#-------------------------------------------------------------------------------------------------------------------------------
#Otomatik Mute
#-------------------------------------------------------------------------------------------------------------------------------   
#Ekstra Ayarlar
#-------------------------------------------------------------------------------------------------------------------------------
options:
    susturmasuresi: 5m
    susturmaduyuru: &8[&4&l!&8] &3%player% &6adlı oyuncu &2{@susturmasuresi} dakika &6susturuldu.
on chat:
    player doesn't have the permission "bot.kufur"
    message contains "bilemem" or "amına" or "amına koyam" or "özür dilerim" or "kufur5" or "kufur6" or "kufur7" or "kufur8" or "kufur9" or "kufur10" or "kufur11" or "kufur12" or "kufur13" or "kufur14" or "kufur15" or "kufur16" or "kufur17" or "kufur18" or "kufur19" or "kufur20"
    wait 1 second
    log "%player% küfür etti." to "sohbetkufur.log"
    execute console command "/mute %player% 5m küfür"
    broadcast "&4[&eSHNW&4] &d%player% &aadlı oyuncu &cKüfür &anedeniyle &c5 &adakika boyunca susturulmuştur!"   
#-------------------------------------------------------------------------------------------------------------------------------
2 gündürlü bu skripti yapıyorum. # li yazılar ekleyince skriptte tab hatası oluştu. Bu hataları düzelten arkadaş var mı :(
 

Blueyescat

Bedrock Kaşifi
En iyi cevaplar
0
command olayının ortasına chat olayı koyup arg kontrollerini ikiye bölmüşsün, bakarsan görürsün zaten.
 
Üst