Çözüldü worldedit oyuncuların kullanabiliceği skript

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

saykokral

BC | Yeniden Sizlerle!
Katılım
9 Aralık 2018
Mesajlar
235
Elmaslar
27
Puan
2.160
Minecraft
BlockCraft / sayko1mizahh / S4YK0KR4L

Discord:

SaykoKral' BlockCraft#9267

Kod:
options:

    #do not touch this -_-
    plugin-version: 0.0.9
    
    
    
#
# ● SETTINGS ●
#   

    wand-item: blaze rod
    
    #you can also use seconds "example, block-place-speed: 2 seconds"
    block-place-speed: 2 ticks
    
    #Block from bellow will not be broken.
    block-break-blacklist: sign or chest or bedrock or mob spawner   
    
    #When this is false, the player needs to wait until the current job is done to start another.
    multiple-jobs: false
        
# ● MESSAGES ●
    
    
    prefix: &6&lWORLD EDIT &8&l» &7   
    
    position-set: &ePozisyon &3%{_pos}% &eayarlandı.
    
    position-not-set: &ePozisyon &3%{_pos}% &eayarlanamamış.
    
    out-of-blocks: &eOBlokların dışında.
    
    cannot-use-this-item: &eBu ürünü kullanamazsın.
    
    started-job: &eBlok yerleştirmeye başladı...
    
    already-started: &eLütfen mevcut işin yapılmasını bekleyin.
    
    finished-job: &eBlok yerleştirme bitti.
    
    block-blacklisted: &cBu blok kara listeye alındı.
    
    no-permission: &cÜzgünüm, yetkin yok.
    


function leaf_we_set_pos(p: player, loc: location, pos: text):
    set {_uuid} to uuid of {_p}
    set {LEAF-WE::%{_uuid}%.POS-%{_pos}%} to {_loc}
    send "{@prefix}{@position-set}" to {_p}

on left-click with {@wand-item}:
    cancel event
    target block is not air
    distance between player and target block is smaller than 5
    leaf_we_set_pos(player, location of target block, "1")   
    
on right-click with {@wand-item}:
    cancel event
    target block is not air
    distance between player and target block is smaller than 5
    leaf_we_set_pos(player, location of target block, "2")
                    
command set [<material>]:
    trigger:
        if player has permission "leafwe.set":
            if {LEAF-WE::%uuid of player%.POS-1} is set:
                if {LEAF-WE::%uuid of player%.POS-2} is set:
                    if arg-1 is not set:
                        set {_block} to player's tool
                    if arg-1 is set:               
                        set {_block} to arg-1
                    if {_block} is a solid block:   
                        if {@multiple-jobs} is false:
                            {LEAF-WE::%uuid of player%.RUNNING} is set
                            send "{@prefix}{@already-started}"   
                            stop
                        set {LEAF-WE::%uuid of player%.RUNNING} to true   
                        send "{@prefix}{@started-job}"   
                        loop blocks within {LEAF-WE::%uuid of player%.POS-1} and {LEAF-WE::%uuid of player%.POS-2}:
                            if player is online:
                                if number of {_block} in player's inventory is greater than 0:
                                    if island at loop-block is island of player:
                                        set {_allow} to true
                                    else:
                                        loop asb player's team members:                                   
                                            island at loop-block is island of loop-value-2
                                            set {_allow} to true
                                    {_allow} is true       
                                    if block at loop-value is not air or {@block-break-blacklist}:
                                        set {_b-give} to block at loop-value
                                        {_b-give} is not any leaves
                                        give {_b-give} to player
                                    if block at loop-value is not {@block-break-blacklist}:   
                                        set block at loop-value to {_block}
                                    play "%{_block}% break" parsed as visual effect at location of loop-value
                                    remove 1 of {_block} from player's inventory
                                    wait {@block-place-speed}
                                else:
                                    send "{@prefix}{@out-of-blocks}"
                                    stop
                            else:
                                stop   
                        delete {LEAF-WE::%uuid of player%.RUNNING}       
                        send "{@prefix}{@finished-job}"   
                    else:
                        send "{@prefix}{@cannot-use-this-item}"
                else:
                    set {_pos} to 2
                    send "{@prefix}{@position-not-set}"                   
            else:
                set {_pos} to 1
                send "{@prefix}{@position-not-set}"   
        else:
            send "{@prefix}{@no-permission}"
                
on quit:
    delete {LEAF-WE::%uuid of player%.POS-1}, {LEAF-WE::%uuid of player%.POS-2} and {LEAF-WE::%uuid of player%.RUNNING}
    
on load:
    send "&8|--------------------------------------------&8|" to console
    send " " to console
    send "{@prefix}&3&lLoading &ev.{@plugin-version}&3..." to console
    send "{@prefix}&3&lPlugin loaded!" to console
    send " " to console
    send "&8|--------------------------------------------&8|" to console
    delete {LEAF-WE::*}

on unload:
    send "&8|--------------------------------------------&8|" to console
    send " " to console
    send "{@prefix}&3&lDisabling &ev.{@plugin-version}&3&l..." to console
    send "{@prefix}&3&lv.{@plugin-version} disabled!" to console
    send " " to console
    send "&8|--------------------------------------------&8|" to console
    stop

merhaba bu skripti kurdum herşey yolunda sanıyordum fakat 2 hata + an internal error occurred while attempting to perform this command diye bir hata alıyorum koyucağım yerleri seçiyorum /set yazıyorum bu çıkıyor ne yapıcam ?
 
1575386830685.png


aldığım 2 hata
 
bende bu skripti kullanıyordum leafwe plugini varmı sunucunda?
 
aynı hatayı alıyorum
 
Kod:
options:
    wanditem: iron axe

command /skybalta:
    trigger:
        if player has permission "koy.oyuncu":   
            set {_sayi} to 640
        else if player has permission "koy.vip":   
            set {_sayi} to 640
        else if player has permission "koy.vip+":   
            set {_sayi} to 640
        else if player has permission "koy.+vip+":   
            set {_sayi} to 640
        else if player has permission "koy.mvip":   
            set {_sayi} to 640
        else if player has permission "koy.mvip+":   
            set {_sayi} to 640
        if {koy::hak::%player%} is set:
            set {_sayi} to {koy::hak::%player%}
        give 1 {@wanditem} named "&cİsland Edit" with lore "||&e&nBir kerede dizebileceğin||&e&nmaximum block sayısı:||||&6%{_sayi}% Block" to player

on left click with {@wanditem}:
    set {_owner} to asb island at location of player owner
    if "%{_owner}%" is equal to "%player%":   
        if clicked block is set:
            if targeted block is not air:
                cancel event
                set {koy::skybalta:::%player%::1} to location of event-block
                if player has permission "koy.oyuncu":   
                    set {_sayi} to 640
                else if player has permission "koy.vip":   
                    set {_sayi} to 640   
                else if player has permission "koy.vip+":   
                    set {_sayi} to 640
                else if player has permission "koy.+vip+":   
                    set {_sayi} to 640
                else if player has permission "koy.mvip":   
                    set {_sayi} to 640
                else if player has permission "koy.mvip+":   
                    set {_sayi} to 640
                if {koy::hak::%player%} is set:
                    set {_sayi} to {koy::hak::%player%}
                if {koy::skybalta:::%player%::2} is set:
                    loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:   
                        add 1 to {_n}
                    if {_n} is smaller than or equal to {_sayi}:
                        send "&aToplamda &c%{_n}% &ablock seçtiniz. &7(&e/koy [<block id>]&7)"
                    else:
                        send "&cKoyabileceğiniz max. sınırı aşıyorsunuz !"
                        delete {koy::skybalta:::%player%::1}
                else:
                    send "&aBölge &e1 &aseçildi. Lütfen Bölge &e2'yide &aseçiniz. &7(&6İptal için &e/koy iptal&7)"
    else:
        send "&cBu ada senin değil !"

on right click with {@wanditem}:
    set {_owner} to asb island at location of player owner
    if "%{_owner}%" is equal to "%player%":
        if clicked block is set:   
            if targeted block is not air:   
                cancel event
                set {koy::skybalta:::%player%::2} to location of event-block
                if player has permission "koy.oyuncu":   
                    set {_sayi} to 640
                else if player has permission "koy.vip":   
                    set {_sayi} to 640
                else if player has permission "koy.vip+":   
                    set {_sayi} to 640
                else if player has permission "koy.+vip+":   
                    set {_sayi} to 640
                else if player has permission "koy.mvip":   
                    set {_sayi} to 640
                else if player has permission "koy.mvip+":   
                    set {_sayi} to 640
                if {koy::hak::%player%} is set:
                    set {_sayi} to {koy::hak::%player%}
                if {koy::skybalta:::%player%::1} is set:
                    loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:   
                        add 1 to {_n}
                    if {_n} is smaller than or equal to {_sayi}:
                        send "&aToplamda &c%{_n}% &ablock seçtiniz. &7(&e/koy [<block id>]&7)"
                    else:
                        send "&cKoyabileceğiniz max. sınırı aşıyorsunuz !"
                        delete {koy::skybalta:::%player%::2}
                else:
                    send "&aBölge &e1 &aseçildi. Lütfen Bölge &e2'yide &aseçiniz. &7(&6İptal için &e/koy iptal&7)"
    else:
        send "&cBu ada senin değil !"

command /koy [<text>]:
    trigger:
        set {_block} to arg 1 parsed as a item type
        if arg 1 is set:
            if {_block} is a item type:
                if {_block} is not air:
                    if {koy::skybalta:::%player%::1} is set:
                        if {koy::skybalta:::%player%::2} is set:
                            loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:   
                                add 1 to {_n}
                            if player has {_n} of {_block}:
                                remove {_n} of {_block} from player's inventory
                            else:
                                set {_amount} to amount of {_block} in player's inventory
                                send "&cYeterli bloğun envanterinde yok. &7(&eGereken &6%{_n}-{_amount}%&7)"
                                stop
                            loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:
                                add 1 to {_lag}
                                set loop-blocks to {_block}
                                if {_lag} is greater than or equal to 100:
                                    wait 1 ticks
                                    delete {_lag}
                            delete {koy::skybalta:::%player%::*}
                        else:
                            send "&cLütfen &a2. &cbölgeyi &esağ &ctıklayarak seçiniz !"
                    else:
                        send "&cLütfen &a1. &cbölgeyi &esol &ctıklayarak seçiniz !"
                else:
                    if {koy::skybalta:::%player%::1} is set:
                        if {koy::skybalta:::%player%::2} is set:
                            loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:
                                add 1 to {_lag}
                                give loop-blocks to player
                                set loop-blocks to {_block}
                                if {_lag} is greater than or equal to 100:
                                    wait 1 ticks
                                    delete {_lag}
                            delete {koy::skybalta:::%player%::*}
                        else:
                            send "&cLütfen &a2. &cbölgeyi &esağ &ctıklayarak seçiniz !"
                    else:
                        send "&cLütfen &a1. &cbölgeyi &esol &ctıklayarak seçiniz !"
        if arg 1 is "iptal":
            delete {koy::skybalta:::%player%::*}
            send "&cSeçili alanlar kaldırıldı !"

command /blockver [<player>] [<number>]:
    permission: op
    permission message: &cYeterli yetkiniz yok !
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                set {koy::hak::%arg 1%} to arg 2
                send "&aYeni block koyma hakkın = &5%{koy::hak::%arg 1%}%" to arg 1
                send "&e%arg 1% &aAdlı oyuncunun yeni block koyma hakkı = &5%{koy::hak::%arg 1%}%" to player
            else:
                send "&cLütfen bir sayı belirle !"
        else:
            send "&cLütfen bir kişi belirle !"
olur aynı mantıktaysa olur tabiki
World Edit kullanmasını istediğin kişiye /blockver 'nick' 'koyabileceğimaksbloksayısı' yazıp, ardından oyuncunun /skybalta yazması gerekmekte. Oyuncu blok dizmek için ise /koy 'BlokdID' yazmalı.
Güle güle kullan.
 
Çok az bir ücret karşılığı Spigot'tan SkyblockWorldEdit adlı eklentiyi almanı tavsiye ederim.
Aylardır kullanıyorum LeafWE ile aynı işlevi görüyor.
 
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