Çözüldü Jail skript

  • Konuyu Başlatan Konuyu Başlatan Welperella
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 292
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Welperella

Somon Balığı Selam Vermeye Geldi
Katılım
12 Şubat 2025
Mesajlar
14
Elmaslar
0
Puan
390
Yaş
24
Konum
Bursa
Minecraft
Westreny

Discord:

ishadowsonic

merhaba
Kod:
command /setjail:

    permission: jail.admin

    trigger:

        set {jail.loc} to location of player

        send "&aJail konumu başarıyla ayarlandı!"



command /jail [<offlineplayer>]:

    permission: jail.use

    trigger:

        if arg 1 is not set:

            send "&3Kullanım: /jail <oyuncu>"

            stop

        set {_uuid} to uuid of arg

        if {jail::%{_uuid}%} is set:

            send "&cBu oyuncu zaten jailde!"

            stop

        if {jail.loc} is not set:

            send "&cÖnce /setjail ile jail konumu ayarla!"

            stop

        add 1 to {jail.count::%{_uuid}%}

        set {_count} to {jail.count::%{_uuid}%}

        set {jail.data::%{_uuid}%::%{_count}%::jailer} to player

        set {jail.data::%{_uuid}%::%{_count}%::jailed} to arg

        set {jail.data::%{_uuid}%::%{_count}%::time} to now

        set {jail.data::%{_uuid}%::%{_count}%::status} to "Jailde"

        set {jail::%{_uuid}%} to true

        set {jail.banned::%{_uuid}%} to uuid of player

        if arg is online:

            teleport arg to {jail.loc}

            send "&cSen jail'e atıldın!" to arg

        send "&a%arg% başarıyla jail'e atıldı."



command /unjail [<offlineplayer>]:

    permission: jail.use

    trigger:

        if arg 1 is not set:

            send "&3Kullanım: /unjail <oyuncu> <sebep>"

            stop

        set {_uuid} to uuid of arg

        if {jail::%{_uuid}%} is not set:

            send "&cBu oyuncu jailde değil!"

            stop

        set {_count} to {jail.count::%{_uuid}%}

        set {jail.data::%{_uuid}%::%{_count}%::status} to "Temiz"

        delete {jail::%{_uuid}%}

        delete {jail.banned::%{_uuid}%}

        if arg is online:

            send "&aJail'den çıkarıldın!" to arg

            execute console command "cikis %arg%"

            send "&a%arg% adlı oyuncu jail'den çıkarıldı." to player



command /setcikis:

    permission: jail.admin

    trigger:

        set {cikis.location} to location of player

        send "&aÇıkış noktası başarıyla ayarlandı!"

command /cikis <player>:

    permission: jail.admin

    trigger:

        if {cikis.location} is not set:

            stop

        teleport arg to {cikis.location}



# Oyuna girişte jail kontrol

on join:

    set {_uuid} to uuid of player

    if {jail::%{_uuid}%} is set:

        teleport player to {jail.loc}

        send "&cSen jaildesin! Hareket edemezsin ve çoğu komutu kullanamazsın."



on player move:

    if {jail::%player's uuid%} is set:

        cancel event



on inventory click:

    if {jail::%player's uuid%} is set:

        cancel event



on sneak toggle:

    if {jail::%player's uuid%} is set:

        cancel event



on toggle sprint:

    if {jail::%player's uuid%} is set:

        cancel event



on command:

    if {jail::%player's uuid%} is set:

        cancel event

        send "&cJaildeyken hiçbir komut kullanamazsın!"



on quit:

    set {_uuid} to uuid of player

    if {jail::%{_uuid}%} is set:

        set {_banner} to {jail.banned::%{_uuid}%}

        set {_count} to {jail.count::%{_uuid}%}

        set {jail.data::%{_uuid}%::%{_count}%::status} to "Banlı"

        execute console command "etempban %player% 1mo Jail'den kaçmaya çalıştı!"

        delete {jail::%{_uuid}%}

        delete {jail.banned::%{_uuid}%}



command /jailgeçmiş [<offlineplayer>]:

    permission: jail.use

    trigger:

        if arg 1 is not set:

            send "&3Kullanım: /jailgeçmiş <oyuncu>"

            stop

        set {_uuid} to uuid of arg

        if {jail.count::%{_uuid}%} is not set:

            send "&cBu oyuncunun jail geçmişi yok."

            stop

        set {_toplam} to {jail.count::%{_uuid}%}

        send "&6%arg% adlı oyuncunun jail geçmişi:"

        loop numbers from 1 to {_toplam}:

            set {_index} to loop-number

            set {_jailer} to {jail.data::%{_uuid}%::%{_index}%::jailer}

            set {_jailed} to {jail.data::%{_uuid}%::%{_index}%::jailed}

            set {_status} to {jail.data::%{_uuid}%::%{_index}%::status}

            set {_zaman} to {jail.data::%{_uuid}%::%{_index}%::time}

            add 3 hours to {_zaman} # Türkiye saati



            set {_formatted} to "%{_zaman}%"

            replace all "-" with "." in {_formatted}

            replace all " " with " | " in {_formatted}

            split {_formatted} at " | " and set {_dateparts::*}

            set {_tarih} to first element of {_dateparts::*}



            send "&7#%{_index}%"

            send "&6Jailleyen: &a%{_jailer}%"

            send "&6Jaillenen: &c%{_jailed}%"

            send "&6Ne zaman jaillendi: &e%{_tarih}%"

            send "&6Durumu: &e%{_status}%"



command /jailgeçmiştemizle [<offlineplayer>]:

    permission: jail.admin

    trigger:

        if arg 1 is not set:

            send "&3Kullanım: /jailgeçmiştemizle <oyuncu>"

            stop

        set {_uuid} to uuid of arg

        set {_toplam} to {jail.count::%{_uuid}%}

        loop numbers from 1 to {_toplam}:

            delete {jail.data::%{_uuid}%::%loop-number%::*}

        delete {jail.count::%{_uuid}%}

        send "&a%arg% adlı oyuncunun tüm jail geçmişi temizlendi."

Satır 125: (jailsistemi.sk)
Can't understand this condition/effect: split {_formatted} at " | " and set {_dateparts::*}
Satır: split {_formatted} at " | " and set {_dateparts::*}

yani satır 125 de böyle bir hata var bu hata /jailgeçmiş bölümünden geliyor sizden istediğim /jailgeçmiş bölümümndeki ne zaman jaillendi: yerinde hat aoluyor <tanımsız> yazıyor sizden istediğim örneğin 7.06.2025 18:01 olarak gözüksün istiyorum orda ona göre ayarlarsanız sevinirim
 
Kod:
command /setjail:
    permission: jail.admin
    trigger:
        set {jail.loc} to location of player
        send "&aJail konumu başarıyla ayarlandı!"

command /jail [<offlineplayer>]:
    permission: jail.use
    trigger:
        if arg 1 is not set:
            send "&3Kullanım: /jail <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        if {jail::%{_uuid}%} is set:
            send "&cBu oyuncu zaten jailde!"
            stop
        if {jail.loc} is not set:
            send "&cÖnce /setjail ile jail konumu ayarla!"
            stop
        add 1 to {jail.count::%{_uuid}%}
        set {_count} to {jail.count::%{_uuid}%}
        set {jail.data::%{_uuid}%::%{_count}%::jailer} to player
        set {jail.data::%{_uuid}%::%{_count}%::jailed} to arg
        set {jail.data::%{_uuid}%::%{_count}%::time} to now
        set {jail.data::%{_uuid}%::%{_count}%::status} to "Jailde"
        set {jail::%{_uuid}%} to true
        set {jail.banned::%{_uuid}%} to uuid of player
        if arg is online:
            teleport arg to {jail.loc}
            send "&cSen jail'e atıldın!" to arg
        send "&a%arg% başarıyla jail'e atıldı."

command /unjail [<offlineplayer>]:
    permission: jail.use
    trigger:
        if arg 1 is not set:
            send "&3Kullanım: /unjail <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        if {jail::%{_uuid}%} is not set:
            send "&cBu oyuncu jailde değil!"
            stop
        set {_count} to {jail.count::%{_uuid}%}
        set {jail.data::%{_uuid}%::%{_count}%::status} to "Temiz"
        delete {jail::%{_uuid}%}
        delete {jail.banned::%{_uuid}%}
        if arg is online:
            send "&aJail'den çıkarıldın!" to arg
            execute console command "cikis %arg%"
        send "&a%arg% adlı oyuncu jail'den çıkarıldı." to player

command /setcikis:
    permission: jail.admin
    trigger:
        set {cikis.location} to location of player
        send "&aÇıkış noktası başarıyla ayarlandı!"

command /cikis <player>:
    permission: jail.admin
    trigger:
        if {cikis.location} is not set:
            stop
        teleport arg to {cikis.location}

on join:
    set {_uuid} to uuid of player
    if {jail::%{_uuid}%} is set:
        teleport player to {jail.loc}
        send "&cSen jaildesin! Hareket edemezsin ve çoğu komutu kullanamazsın."

on player move:
    if {jail::%player's uuid%} is set:
        cancel event

on inventory click:
    if {jail::%player's uuid%} is set:
        cancel event

on sneak toggle:
    if {jail::%player's uuid%} is set:
        cancel event

on toggle sprint:
    if {jail::%player's uuid%} is set:
        cancel event

on command:
    if {jail::%player's uuid%} is set:
        cancel event
        send "&cJaildeyken hiçbir komut kullanamazsın!"

on quit:
    set {_uuid} to uuid of player
    if {jail::%{_uuid}%} is set:
        set {_banner} to {jail.banned::%{_uuid}%}
        set {_count} to {jail.count::%{_uuid}%}
        set {jail.data::%{_uuid}%::%{_count}%::status} to "Banlı"
        execute console command "etempban %player% 1mo Jail'den kaçmaya çalıştı!"
        delete {jail::%{_uuid}%}
        delete {jail.banned::%{_uuid}%}

command /jailgeçmiş [<offlineplayer>]:
    permission: jail.use
    trigger:
        if arg 1 is not set:
            send "&3Kullanım: /jailgeçmiş <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        if {jail.count::%{_uuid}%} is not set:
            send "&cBu oyuncunun jail geçmişi yok."
            stop
        set {_toplam} to {jail.count::%{_uuid}%}
        send "&6%arg% adlı oyuncunun jail geçmişi:"
        loop numbers from 1 to {_toplam}:
            set {_index} to loop-number
            set {_jailer} to {jail.data::%{_uuid}%::%{_index}%::jailer}
            set {_jailed} to {jail.data::%{_uuid}%::%{_index}%::jailed}
            set {_status} to {jail.data::%{_uuid}%::%{_index}%::status}
            set {_zaman} to {jail.data::%{_uuid}%::%{_index}%::time}
            add 3 hours to {_zaman}
            set {_tarih} to formatted date of {_zaman} using "dd.MM.yyyy HH:mm"
            send "&7#%{_index}%"
            send "&6Jailleyen: &a%{_jailer}%"
            send "&6Jaillenen: &c%{_jailed}%"
            send "&6Ne zaman jaillendi: &e%{_tarih}%"
            send "&6Durumu: &e%{_status}%"

command /jailgeçmiştemizle [<offlineplayer>]:
    permission: jail.admin
    trigger:
        if arg 1 is not set:
            send "&3Kullanım: /jailgeçmiştemizle <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        set {_toplam} to {jail.count::%{_uuid}%}
        loop numbers from 1 to {_toplam}:
            delete {jail.data::%{_uuid}%::%loop-number%::*}
        delete {jail.count::%{_uuid}%}
        send "&a%arg% adlı oyuncunun tüm jail geçmişi temizlendi."

Dener misin? Olmazsa hata veren kısımları söyler misin?
 
Kod:
command /setjail:
    permission: jail.admin
    trigger:
        set {jail.loc} to location of player
        send "&aJail konumu başarıyla ayarlandı!"

command /jail [<offlineplayer>]:
    permission: jail.use
    trigger:
        if arg 1 is not set:
            send "&3Kullanım: /jail <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        if {jail::%{_uuid}%} is set:
            send "&cBu oyuncu zaten jailde!"
            stop
        if {jail.loc} is not set:
            send "&cÖnce /setjail ile jail konumu ayarla!"
            stop
        add 1 to {jail.count::%{_uuid}%}
        set {_count} to {jail.count::%{_uuid}%}
        set {jail.data::%{_uuid}%::%{_count}%::jailer} to player
        set {jail.data::%{_uuid}%::%{_count}%::jailed} to arg
        set {jail.data::%{_uuid}%::%{_count}%::time} to now
        set {jail.data::%{_uuid}%::%{_count}%::status} to "Jailde"
        set {jail::%{_uuid}%} to true
        set {jail.banned::%{_uuid}%} to uuid of player
        if arg is online:
            teleport arg to {jail.loc}
            send "&cSen jail'e atıldın!" to arg
        send "&a%arg% başarıyla jail'e atıldı."

command /unjail [<offlineplayer>]:
    permission: jail.use
    trigger:
        if arg 1 is not set:
            send "&3Kullanım: /unjail <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        if {jail::%{_uuid}%} is not set:
            send "&cBu oyuncu jailde değil!"
            stop
        set {_count} to {jail.count::%{_uuid}%}
        set {jail.data::%{_uuid}%::%{_count}%::status} to "Temiz"
        delete {jail::%{_uuid}%}
        delete {jail.banned::%{_uuid}%}
        if arg is online:
            send "&aJail'den çıkarıldın!" to arg
            execute console command "cikis %arg%"
        send "&a%arg% adlı oyuncu jail'den çıkarıldı." to player

command /setcikis:
    permission: jail.admin
    trigger:
        set {cikis.location} to location of player
        send "&aÇıkış noktası başarıyla ayarlandı!"

command /cikis <player>:
    permission: jail.admin
    trigger:
        if {cikis.location} is not set:
            stop
        teleport arg to {cikis.location}

on join:
    set {_uuid} to uuid of player
    if {jail::%{_uuid}%} is set:
        teleport player to {jail.loc}
        send "&cSen jaildesin! Hareket edemezsin ve çoğu komutu kullanamazsın."

on player move:
    if {jail::%player's uuid%} is set:
        cancel event

on inventory click:
    if {jail::%player's uuid%} is set:
        cancel event

on sneak toggle:
    if {jail::%player's uuid%} is set:
        cancel event

on toggle sprint:
    if {jail::%player's uuid%} is set:
        cancel event

on command:
    if {jail::%player's uuid%} is set:
        cancel event
        send "&cJaildeyken hiçbir komut kullanamazsın!"

on quit:
    set {_uuid} to uuid of player
    if {jail::%{_uuid}%} is set:
        set {_banner} to {jail.banned::%{_uuid}%}
        set {_count} to {jail.count::%{_uuid}%}
        set {jail.data::%{_uuid}%::%{_count}%::status} to "Banlı"
        execute console command "etempban %player% 1mo Jail'den kaçmaya çalıştı!"
        delete {jail::%{_uuid}%}
        delete {jail.banned::%{_uuid}%}

command /jailgeçmiş [<offlineplayer>]:
    permission: jail.use
    trigger:
        if arg 1 is not set:
            send "&3Kullanım: /jailgeçmiş <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        if {jail.count::%{_uuid}%} is not set:
            send "&cBu oyuncunun jail geçmişi yok."
            stop
        set {_toplam} to {jail.count::%{_uuid}%}
        send "&6%arg% adlı oyuncunun jail geçmişi:"
        loop numbers from 1 to {_toplam}:
            set {_index} to loop-number
            set {_jailer} to {jail.data::%{_uuid}%::%{_index}%::jailer}
            set {_jailed} to {jail.data::%{_uuid}%::%{_index}%::jailed}
            set {_status} to {jail.data::%{_uuid}%::%{_index}%::status}
            set {_zaman} to {jail.data::%{_uuid}%::%{_index}%::time}
            add 3 hours to {_zaman}
            set {_tarih} to formatted date of {_zaman} using "dd.MM.yyyy HH:mm"
            send "&7#%{_index}%"
            send "&6Jailleyen: &a%{_jailer}%"
            send "&6Jaillenen: &c%{_jailed}%"
            send "&6Ne zaman jaillendi: &e%{_tarih}%"
            send "&6Durumu: &e%{_status}%"

command /jailgeçmiştemizle [<offlineplayer>]:
    permission: jail.admin
    trigger:
        if arg 1 is not set:
            send "&3Kullanım: /jailgeçmiştemizle <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        set {_toplam} to {jail.count::%{_uuid}%}
        loop numbers from 1 to {_toplam}:
            delete {jail.data::%{_uuid}%::%loop-number%::*}
        delete {jail.count::%{_uuid}%}
        send "&a%arg% adlı oyuncunun tüm jail geçmişi temizlendi."

Dener misin? Olmazsa hata veren kısımları söyler misin?
YAML:
[17:01:59 INFO]: Satır 121: (jailsistemi.sk)

[17:01:59 INFO]:     Can't understand this expression: 'formatted date of {_zaman} using "dd.MM.yyyy HH:mm"'

[17:01:59 INFO]:     Satır: set {_tarih} to formatted date of {_zaman} using "dd.MM.yyyy HH:mm"

[17:01:59 INFO]:

[17:01:59 INFO]:     jailsistemi.sk adlı script yüklenirken 1 adet hatayla karşılaşıldı! (653ms)
 
Moderatör tarafından düzenlendi:
YAML:
[17:01:59 INFO]: Satır 121: (jailsistemi.sk)

[17:01:59 INFO]:     Can't understand this expression: 'formatted date of {_zaman} using "dd.MM.yyyy HH:mm"'

[17:01:59 INFO]:     Satır: set {_tarih} to formatted date of {_zaman} using "dd.MM.yyyy HH:mm"

[17:01:59 INFO]:

[17:01:59 INFO]:     jailsistemi.sk adlı script yüklenirken 1 adet hatayla karşılaşıldı! (653ms)
SkUtilities gerektiriyor formatted date seçeneği.
Eğer addon indirmek istemiyorsan:

Kod:
command /setjail:
    permission: jail.admin
    trigger:
        set {jail.loc} to location of player
        send "&aJail konumu başarıyla ayarlandı!"

command /jail [<offlineplayer>]:
    permission: jail.use
    trigger:
        if arg is not set:
            send "&3Kullanım: /jail <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        if {jail::%{_uuid}%} is set:
            send "&cBu oyuncu zaten jailde!"
            stop
        if {jail.loc} is not set:
            send "&cÖnce /setjail ile jail konumu ayarla!"
            stop
        add 1 to {jail.count::%{_uuid}%}
        set {_count} to {jail.count::%{_uuid}%}
        set {jail.data::%{_uuid}%::%{_count}%::jailer} to player
        set {jail.data::%{_uuid}%::%{_count}%::jailed} to arg
        set {jail.data::%{_uuid}%::%{_count}%::time} to "%date% - %time%"
        set {jail.data::%{_uuid}%::%{_count}%::status} to "Jailde"
        set {jail::%{_uuid}%} to true
        set {jail.banned::%{_uuid}%} to uuid of player
        if arg is online:
            teleport arg to {jail.loc}
            send "&cSen jail'e atıldın!" to arg
        send "&a%arg% başarıyla jail'e atıldı."

command /unjail [<offlineplayer>]:
    permission: jail.use
    trigger:
        if arg is not set:
            send "&3Kullanım: /unjail <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        if {jail::%{_uuid}%} is not set:
            send "&cBu oyuncu jailde değil!"
            stop
        set {_count} to {jail.count::%{_uuid}%}
        set {jail.data::%{_uuid}%::%{_count}%::status} to "Temiz"
        delete {jail::%{_uuid}%}
        delete {jail.banned::%{_uuid}%}
        if arg is online:
            send "&aJail'den çıkarıldın!" to arg
            execute console command "cikis %arg%"
        send "&a%arg% adlı oyuncu jail'den çıkarıldı." to player

command /setcikis:
    permission: jail.admin
    trigger:
        set {cikis.location} to location of player
        send "&aÇıkış noktası başarıyla ayarlandı!"

command /cikis <player>:
    permission: jail.admin
    trigger:
        if {cikis.location} is not set:
            stop
        teleport arg to {cikis.location}

on join:
    set {_uuid} to uuid of player
    if {jail::%{_uuid}%} is set:
        teleport player to {jail.loc}
        send "&cSen jaildesin! Hareket edemezsin ve çoğu komutu kullanamazsın."

on player move:
    if {jail::%player's uuid%} is set:
        cancel event

on inventory click:
    if {jail::%player's uuid%} is set:
        cancel event

on sneak toggle:
    if {jail::%player's uuid%} is set:
        cancel event

on toggle sprint:
    if {jail::%player's uuid%} is set:
        cancel event

on command:
    if {jail::%player's uuid%} is set:
        cancel event
        send "&cJaildeyken hiçbir komut kullanamazsın!"

on quit:
    set {_uuid} to uuid of player
    if {jail::%{_uuid}%} is set:
        set {_banner} to {jail.banned::%{_uuid}%}
        set {_count} to {jail.count::%{_uuid}%}
        set {jail.data::%{_uuid}%::%{_count}%::status} to "Banlı"
        execute console command "etempban %player% 1mo Jail'den kaçmaya çalıştı!"
        delete {jail::%{_uuid}%}
        delete {jail.banned::%{_uuid}%}

command /jailgeçmiş [<offlineplayer>]:
    permission: jail.use
    trigger:
        if arg is not set:
            send "&3Kullanım: /jailgeçmiş <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        if {jail.count::%{_uuid}%} is not set:
            send "&cBu oyuncunun jail geçmişi yok."
            stop
        set {_toplam} to {jail.count::%{_uuid}%}
        send "&6%arg% adlı oyuncunun jail geçmişi:"
        loop numbers from 1 to {_toplam}:
            set {_index} to loop-number
            set {_jailer} to {jail.data::%{_uuid}%::%{_index}%::jailer}
            set {_jailed} to {jail.data::%{_uuid}%::%{_index}%::jailed}
            set {_status} to {jail.data::%{_uuid}%::%{_index}%::status}
            set {_time} to {jail.data::%{_uuid}%::%{_index}%::time}
            send "&7#%{_index}%"
            send "&6Jailleyen: &a%{_jailer}%"
            send "&6Jaillenen: &c%{_jailed}%"
            send "&6Ne zaman jaillendi: &e%{_time}%"
            send "&6Durumu: &e%{_status}%"

command /jailgeçmiştemizle [<offlineplayer>]:
    permission: jail.admin
    trigger:
        if arg is not set:
            send "&3Kullanım: /jailgeçmiştemizle <oyuncu>"
            stop
        set {_uuid} to uuid of arg
        set {_toplam} to {jail.count::%{_uuid}%}
        loop numbers from 1 to {_toplam}:
            delete {jail.data::%{_uuid}%::%loop-number%::*}
        delete {jail.count::%{_uuid}%}
        send "&a%arg% adlı oyuncunun tüm jail geçmişi temizlendi."
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst