Minecraft Skript Hata

LifeMCServer

Nether Yerlisi
En iyi cevaplar
98
Maşallah beynim yandı :p

Basit. Yasaklamanın verildiği tarihi ve süresini depoluyor. Oyuncu muaf komutlar dışında bir komut girdiğinde yasaklamanın verildiği tarih ila şuanki tarih arasındaki fark yasaklama süresinden büyük ya da eşit ise yasaklamayı kaldırıyor.

Bu ara da ufak bi düzenleme yaptım mesaja tekrar bak onu dene.
 

LifeMCServer

Nether Yerlisi
En iyi cevaplar
98
Süreye 1s 1h 1 ne yazarsam yazayım <none> oluyor @LifeMCServer

Al buyur oldumu :D

PHP:
#
#
# Yapımcı / Producer by
# @ToprakM
#
# Düzenleme / Edit by
# @LifeMCServer
#
# Herhangi bir yerde izinsiz paylaşılması kesinlikle yasaktır / Unauthorized sharing in any place is strictly prohibited
# Tüm hakları saklıdır / All Rights Reserved
#
#

#ÖNEMLİ NOT
#muaf'a istediginiz bir komutu girebilirsiniz. Girdiğiniz komutları oyuncular kommutengelle ile cezalandırılmış olsa bile yetkisi varsa kullanabilirler
#muaf'a komut girerken (mesela /spawn komutunu girerken) / (slash) kullanmamanız gerekiyor (sadece spawn yazmalısınız)
#ÖNEMLİ NOT

options:
    serveradi: &8[&bLifeMC&8]&r &7
    muaf1: komut1
    muaf2: komut2
    muaf3: komut3
    muaf4: komut4
    muaf5: komut5
    muaf6: komut6
    muaf7: komut7
    muaf8: komut8
    muaf9: komut9
    muaf10: komut10
 
command /komutengelle [<offlineplayer>] [<text>] [<text>]:
    permission: komutengelle.kullan
    permission message: {@serveradi} &fBu komutu kullanamazsın
    aliases: kengel
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if arg-3 is set:
                    set {_x} to arg-2
                    set {_sure} to arg-2
                    if arg-2 contains "m":
                        replace all "m" with " minutes" in {_x}
                    if arg-2 contains "h":
                        replace all "h" with " hours" in {_x}
                    if arg-2 contains "y":
                        replace all "y" with " years" in {_x}
                    if arg-2 contains "w":
                        replace all "w" with " weeks" in {_x}
                    if arg-2 contains "s":
                        replace all "s" with " seconds" in {_x}
                    if arg-2 contains "mo":
                        replace all "mo" with " months" in {_x}
                    if arg-2 contains "d":
                        replace all "d" with " days" in {_x}
                    set {_xs} to "%{_x}%" parsed as timespan
                    if arg-2 contains "m":
                        replace all "m" with " Dakika" in {_sure}
                    if arg-2 contains "h":
                        replace all "h" with " Saat" in {_sure}
                    if arg-2 contains "y":
                        replace all "y" with " Yıl" in {_sure}
                    if arg-2 contains "w":
                        replace all "w" with " Hafta" in {_sure}
                    if arg-2 contains "s":
                        replace all "s" with " Saniye" in {_sure}
                    if arg-2 contains "mo":
                        replace all "mo" with " Ay" in {_sure}
                    if arg-2 contains "d":
                        replace all "d" with " Gün" in {_sure}
                    send "&8&l--------{@serveradi}&8&l--------&r" to all players
                    send " &bKomut yazması engellenen &8> &c%arg-1%" to all players
                    send " &bKomut yazmasını engelleyen &8> &2%player%"  to all players
                    send " &bSüre &8> &b%{_sure}%" to all players
                    send " &bSebep &8> &a%arg-3%" to all players
                    send "&8&l--------{@serveradi}&8&l--------&r" to all players
                    set {komutYasak::%arg-1%} to {_xs}
                    set {komutYasak::%arg-1%::time} to now
                    set {komutYasak::%arg-1%::time::tr} to "%day%.%month%.%year% %hour%:%minute%"
                    set {komutYasak::%arg-1%::by} to player
                else:
                    message "{@serveradi} &fKullanımı: &a/komutengelle <OyuncuAdı> <Süre> <Sebep>"
            else:
                message "{@serveradi} &fKullanımı: &a/komutengelle <OyuncuAdı> <Süre> <Sebep>"
        else:
            message "{@serveradi} &fKullanımı: &a/komutengelle <OyuncuAdı> <Süre> <Sebep>"
command /komutengellekaldır [<offlineplayer>]:
    permission: komutengelle.kullan
    permission message: {@serveradi} &fBu komutu kullanamazsın!
    aliases: kengelkaldır
    trigger:
        if arg-1 is set:
            delete {komutYasak::%arg-1%}
            delete {komutYasak::%arg-1%::time}
            message "{@serveradi} &c%arg-1% &fadlı oyuncunun KomutEngelle cezasını başarıyla kaldırdın!"
        else:
            message "{@serveradi} &fKullanımı: &a/komutengellekaldır <OyuncuAdı>"
command /komutengelgoster [<offlineplayer>]:
    permission: komutengelle.goster
    permission message: {@serveradi} &fBu komutu kullanamazsın!
    aliases: kengelgoster
    trigger:
        if arg-1 is set:
            set {_c} to "%{komutYasak::%arg-1%}%"
            if {_c} contains " minute":
                replace all " minute" with " Dakika" in {_c}
            if {_c} contains " hour":
                replace all " hour" with " Saat" in {_c}
            if {_c} contains " year":
                replace all " year" with " Yıl" in {_c}
            if {_c} contains " week":
                replace all " week" with " Hafta" in {_c}
            if {_c} contains " second":
                replace all " second" with " Saniye" in {_c}
            if {_c} contains " month":
                replace all " month" with " Ay" in {_c}
            if {_c} contains " day":
                replace all " day" with " Gün" in {_c}
            set {_f} to difference between {komutYasak::%arg-1%::time} and now
            set {_s} to "%{_f}%"
            if {_s} contains " minute":
                replace all " minute" with " Dakika" in {_s}
            if {_s} contains " hour":
                replace all " hour" with " Saat" in {_s}
            if {_s} contains " year":
                replace all " year" with " Yıl" in {_s}
            if {_s} contains " week":
                replace all " week" with " Hafta" in {_s}
            if {_s} contains " second":
                replace all " second" with " Saniye" in {_s}
            if {_s} contains " month":
                replace all " month" with " Ay" in {_s}
            if {_s} contains " day":
                replace all " day" with " Gün" in {_s}
            replace all " Dakikas" with " Dakika" in {_s}
            replace all " Saats" with " Saat" in {_s}
            replace all " Yıls" with " Yıl" in {_s}
            replace all " Haftas" with " Hafta" in {_s}
            replace all " Saniyes" with " Saniye" in {_s}
            replace all " Ays" with " Ay" in {_s}
            replace all " Güns" with " Gün" in {_s}
            message "{@serveradi} &6Süre&f: &c%{_c}%"
            message "{@serveradi} &6Atıldığı tarih&f: &c%{komutYasak::%arg-1%::time::tr}%"
            message "{@serveradi} &6Geçen zaman&f: &c%{_s}%"
            message "{@serveradi} &6Atan yetkili&f: &c%{komutYasak::%arg-1%::by}%"
        else:
            message "{@serveradi} &fKullanımı: &a/komutengelgoster <OyuncuAdı>"
on command:
    if {komutYasak::%player%} is set:
        if {komutYasak::%player%::time} is set:
            if command is not "{@muaf1}", "{@muaf2}", "{@muaf3}", "{@muaf4}", "{@muaf5}", "{@muaf6}", "{@muaf7}", "{@muaf8}", "{@muaf9}" or "{@muaf10}":
                set {_f} to difference between {komutYasak::%player%::time} and now
                set {_c} to "%{komutYasak::%player%}%"
                set {_s} to "%{_f}%"
                if {_c} contains " minute":
                    replace all " minute" with " Dakika" in {_c}
                if {_c} contains " hour":
                    replace all " hour" with " Saat" in {_c}
                if {_c} contains " year":
                    replace all " year" with " Yıl" in {_c}
                if {_c} contains " week":
                    replace all " week" with " Hafta" in {_c}
                if {_c} contains " second":
                    replace all " second" with " Saniye" in {_c}
                if {_c} contains " month":
                    replace all " month" with " Ay" in {_c}
                if {_c} contains " day":
                    replace all " day" with " Gün" in {_c}
                if {_s} contains " minute":
                    replace all " minute" with " Dakika" in {_s}
                if {_s} contains " hour":
                    replace all " hour" with " Saat" in {_s}
                if {_s} contains " year":
                    replace all " year" with " Yıl" in {_s}
                if {_s} contains " week":
                    replace all " week" with " Hafta" in {_s}
                if {_s} contains " second":
                    replace all " second" with " Saniye" in {_s}
                if {_s} contains " month":
                    replace all " month" with " Ay" in {_s}
                if {_s} contains " day":
                    replace all " day" with " Gün" in {_s}
                replace all " Dakikas" with " Dakika" in {_s}
                replace all " Saats" with " Saat" in {_s}
                replace all " Yıls" with " Yıl" in {_s}
                replace all " Haftas" with " Hafta" in {_s}
                replace all " Saniyes" with " Saniye" in {_s}
                replace all " Ays" with " Ay" in {_s}
                replace all " Güns" with " Gün" in {_s}
                if {_f} is greater than or equal to {komutYasak::%player%}:
                    delete {komutYasak::%player%}
                    delete {komutYasak::%player%::*}
                    send "{@serveradi} &aArtık komut kullanabilirsin!"
                else:
                    cancel event
                    send "{@serveradi} &f%{_c}% boyunca bazı komutlar dışında komut yazman engellendi. (%{_s}% kadar bekledin)"
        else:
            delete {komutYasak::%player%}
            delete {komutYasak::%player%::*}
    else:
        delete {komutYasak::%player%}
        delete {komutYasak::%player%::*}
 
Üst