DiscordAPI'li [Güvenlik Kodu Skripti] Grieflerden korunun! Asla hesabınıza kimse giremesin!

COBBLEMC

Marangoz
Mesajlar
42
En iyi cevaplar
2
Beğeniler
5
Puanları
70
Merhaba, Yakın zamanda çevremdekilerin sunucularının grieflenmesi üzerine bu Skripti paylaşmak istedim. Aslında zaten paylaşılmış olan bir skript ama yine de Ben bunu geliştirerek, Discord'a bağlayarak Her girişlerinizi Discord'da loglara döken ve hatalı girişlerde Uyarı mesajı atıp oyuncuyu 15 dakikalığına banlayan bir sisteme uyarladım.

GÖRSELLER
1594166695260.png

1594166738625.png


GEREKLİLİKLER
Skript 2.2 ve üstü;
Vixio (Skript addon)
1.15.2 ve 1.8.8 ile test edildi

Kod:
options:
    p: &aGüvenlik Kodu &8&l>
    botisim: "" #Buraya Botunuzun ismini girin hashtah olmadan.
    botToken: "" #Buraya Botunuzun Tokenini girin.
    hataligiris: "" # Hatalı giriş mesajının gideceği kanal IDsi
    basariligiris: "" #Başarılı giriş mesajının gideceği kanal IDsi
    gkod: #Güvenlik kodunuzu belirtin.
# Hatalı giriş mesajı alttaki satırdadır.
    hgmesaji: **adlı oyuncu sunucuda yanlış Güvenlik kodu girdi. Bu sebeple sunucudan 15 Dakikalığına Uzaklaştırıldı!**
# Başarılı giriş mesajı alttaki satırdadır!
    bgmesaji: adlı oyuncu Sunucuda Doğru Güvenlik Kodunu Kullandı. Bir Sorun olduğunu düşünmüyorsanız bu mesajı kale almayın.
    hata: &eGüvenlik kodu girilmeden herhangi bir işlem sağlayamazsın.
    basarili: &eGüvenlik Kodu Doğru. Artık istediğiniz işlevi gerçekleştirebilirsiniz.
    girismesaj: &cGüvenlik kodunu girmen gerekiyor. /gkod (Güvenlik Kodu).

on load:
    if {@botisim} parsed as bot is not set:
        login to {@botToken} with name {@botisim}

on join:
    set {gkod.%player%} to false
    if player is op:
        set {gkod.%player%} to false
        wait 2 tick
        send "{@p} {@girismesaj}" to player
        set player's walk speed to 0
        set player's fly speed to 0
    else:
        if player has permission "*":
            set {gkod.%player%} to false
            wait 2 ticks
            send "{@p} {@girismesaj}" to player
            set player's walk speed to 0
            set player's fly speed to 0
        else:
            if player has permission "gkod.yetkilisi":
                set {gkod.%player%} to false
                wait 2 ticks
                send "{@p} {@girismesaj}" to player
                set player's walk speed to 0
                set player's fly speed to 0
       
on break:
    if player is op:
        if {gkod.%player%} is false:
            cancel event
    else if player has permission "*":
        if {gkod.%player%} is false:
            cancel event
    else if player has permission "gkod.yetkilisi":
        if {gkod.%player%} is false:
            cancel event
   
on place:
    if player is op:
        if {gkod.%player%} is false:
            cancel event
    else if player has permission "*":
        if {gkod.%player%} is false:
            cancel event
    else if player has permission "gkod.yetkilisi":
        if {gkod.%player%} is false:
            cancel event

on command:
    if player is op:
        if {gkod.%player%} is false:
            if command is not "gkod":
                cancel event
                send "{@p} {@hata}" to player
    else:
        if player has permission "*":
            if {gkod.%player%} is false:
                if command is not "gkod":
                    cancel event
                    send "{@p} {@hata}" to player
        else:
            if player has permission "gkod.yetkilisi":
                if {gkod.%player%} is false:
                    if command is not "gkod":
                        cancel event
                        send "{@p} {@hata}" to player
               
command /gkod [<text>]:
    permission: gkod.yetkilisi
    permission message: {@p} &cÜzgünüm bu komutu girmek için yetkin yok!
    usage: {@p} &c/gkod [Güvenlik Kodu]
    trigger:
        if {gkod.%player%} is false:
            if arg-1 is "{@gkod}":
                set {gkod.%player%} to true
                send "{@p} &aGüvenlik kodu doğru!"
                execute console command "speed walk 1 %player%"
                execute console command "speed fly 1 %player%"
                send "@here `%player%` {@bgmesaji}" to channel with id {@basariligiris} with {@botisim}
            else:
                kick player because "{@p} &cGüvenlik Kodu hatalı!"
                execute console command "tempban %player% 15M Hatalı Güvenlik Kodu kullanımı."
                send "@here `%player%` {@hgmesaji}" to channel with id {@hataligiris} with {@botisim}
        else:
            send "{@p} &aGüvenlik Kodu zaten girilmiş."

on unload:
    logout {@botisim}

ENGLISH;

Hello, I wanted to share this skript on the griefing of the servers of people around me recently. Actually, it is already a shared skript, but I have developed it, connecting it to Discord and adapting it to a system that logs every entry in Discord and sends a Warning message for faulty entries and banned the player for 15 minutes.


IMAGES
THERE IS NO ENGLISH IMAGES :(
1594166695260.png

1594166738625.png

REQUIREMENTS
Skript 2.2 and UP
Vixio (a Skript addon)
I've tested this skript on 1.15.2 and 1.8.8


Kod:
options:
    p: &aSecurity Code &8&l>
    botisim: "" #You should type here your bot's name without hashtag ex. 'CobbleMC'.
    botToken: "" #you should enter here your bot's token.
    hataligiris: "" # Channel ID to which the error message will be sent
    basariligiris: "" # Channel ID to which the successful message will be sent
    gkod: #Type here your own security code, create it on https://passwordsgenerator.net/
# The wrong login message is below.
    hgmesaji: **adlı oyuncu sunucuda yanlış Güvenlik kodu girdi. Bu sebeple sunucudan 15 Dakikalığına Uzaklaştırıldı!**
# Successful login message is below
    bgmesaji: adlı oyuncu Sunucuda Doğru Güvenlik Kodunu Kullandı. Bir Sorun olduğunu düşünmüyorsanız bu mesajı kale almayın.
    hata: &eYou can not do anything without use Security Code!. # error message
    basarili: &Security Code is Right!. You can do anything what you want right now! # succes message
    girismesaj: &cYou have to use Security Code. /scode (Security Code). #Join message
    girilmis: &cAlready used! #already used

on load:
    if {@botisim} parsed as bot is not set:
        login to {@botToken} with name {@botisim}

on join:
    set {gkod.%player%} to false
    if player is op:
        set {gkod.%player%} to false
        wait 2 tick
        send "{@p} {@girismesaj}" to player
        set player's walk speed to 0
        set player's fly speed to 0
    else:
        if player has permission "*":
            set {gkod.%player%} to false
            wait 2 ticks
            send "{@p} {@girismesaj}" to player
            set player's walk speed to 0
            set player's fly speed to 0
        else:
            if player has permission "scode.user":
                set {gkod.%player%} to false
                wait 2 ticks
                send "{@p} {@girismesaj}" to player
                set player's walk speed to 0
                set player's fly speed to 0
        
on break:
    if player is op:
        if {gkod.%player%} is false:
            cancel event
    else if player has permission "*":
        if {gkod.%player%} is false:
            cancel event
    else if player has permission "scode.user":
        if {gkod.%player%} is false:
            cancel event
    
on place:
    if player is op:
        if {gkod.%player%} is false:
            cancel event
    else if player has permission "*":
        if {gkod.%player%} is false:
            cancel event
    else if player has permission "scode.user":
        if {gkod.%player%} is false:
            cancel event

on command:
    if player is op:
        if {gkod.%player%} is false:
            if command is not "gkod":
                cancel event
                send "{@p} {@hata}" to player
    else:
        if player has permission "*":
            if {gkod.%player%} is false:
                if command is not "gkod":
                    cancel event
                    send "{@p} {@hata}" to player
        else:
            if player has permission "scode.user":
                if {gkod.%player%} is false:
                    if command is not "gkod":
                        cancel event
                        send "{@p} {@hata}" to player
                
command /scode [<text>]:
    permission: scode.user
    permission message: {@p} &cÜzgünüm bu komutu girmek için yetkin yok!
    usage: {@p} &c/gkod [Güvenlik Kodu]
    trigger:
        if {gkod.%player%} is false:
            if arg-1 is "{@gkod}":
                set {gkod.%player%} to true
                send "{@p} {@basarili}"
                execute console command "speed walk 1 %player%"
                execute console command "speed fly 1 %player%"
                send "@here `%player%` {@bgmesaji}" to channel with id {@basariligiris} with {@botisim}
            else:
                kick player because "{@p} &cWrong Security Code!"
                execute console command "tempban %player% 15M You've used wrong Security Code!"
                send "@here `%player%` {@hgmesaji}" to channel with id {@hataligiris} with {@botisim}
        else:
            send "{@p} {@girilmis}" to player

on unload:
    logout {@botisim}

Bizim Skrip Topluluğumuza katıl ve ne sorunun var ise hepsini çözmeye çalışalım!
Topluluğumuzun çoğunluğu yabancı olması sebebiyle bu konuya İngilizce anlatım ekledim.
Join our Skript community to solve your all problems!
 


Ekli dosyalar

  • 1594167990283.png
    1594167990283.png
    28.2 KB · Görüntüleme: 117
Moderatör tarafından düzenlendi:

Üst