Sol Reklam

Çözüldü Yardım Gerekli.

Durum
Mesaj gönderimine kapalı.

RomanticWarior

Yay Yok, İskelet Yok
Katılım
12 Eylül 2017
Mesajlar
278
Elmaslar
113
Puanlar
4.350
Merhabalar öncelikle hayırlı cumalar, arkadaşlar bir skript üzerinde çalışıyorum ama yapmak istedigim birşey var aşagıdaki kodda gördügünüz gibi /sandık yazdıgında bi sandık acılıyo ama benim istedigim şey /sandık <player> yazdıgı zaman playerin sandıgını göstermesi ama böyle yaptıgımda hata alıyorum yapa bilecek biri varsa şimdiden teşekkürler.

KOD
Kod:
command /sandık:
    trigger:
        open chest with 1 rows named "&bSandigim" to player
        if {elmas.%player%} is greater than or equal to 1:
            format slot 1 of player with diamond of unbreaking 1 named "&aDeneme" with lore "&7Deneme: &2Aktif." to close
        else:
            format slot 1 of player with diamond named "&adeneme" with lore "&7Deneme &cAktif Degil." to close
        if {zumrut.%player%} is greater than or equal to 1:
            format slot 2 of player with emerald of unbreaking 1 named "Deneme" with lore "deneme &2Aktif." to close
        else:
            format slot 2 of player with emerald named "&cdeneme" with lore "&deneme &cAktif Degil." to close
 
Son düzenleme:
Kod:
command /sandık [<player>]:
    trigger:
        if arg 1 is offline:
            open chest with 1 rows named "&bSandigim" to player
            if {elmas.%arg 1%} is greater than or equal to 1:
                format slot 1 of player with diamond of unbreaking 1 named "&aDeneme" with lore "&7MadalyaDurumu: &2Aktif." to close
            else:
                format slot 1 of player with diamond named "&adeneme" with lore "&7Deneme &cAktif Degil." to close
        if arg 1 is online:
            open chest with 1 rows named "&bSandigim" to player
            if {elmas.%arg 1%} is greater than or equal to 1:
                format slot 1 of player with diamond of unbreaking 1 named "&aDeneme" with lore "&7MadalyaDurumu: &2Aktif." to close
            else:
                format slot 1 of player with diamond of unbreaking 1 named "&aDeneme" with lore "&7Deneme &caktif degil." to close
        else:
            send "&cDogru kullanım: &e-/sandık <oyuncu>" to player
 
Kod:
command /sandık [<player>]:
    trigger:
        if arg 1 is offline:
            open chest with 1 rows named "&bSandigim" to player
            if {elmas.%arg 1%} is greater than or equal to 1:
                format slot 1 of player with diamond of unbreaking 1 named "&aDeneme" with lore "&7MadalyaDurumu: &2Aktif." to close
            else:
                format slot 1 of player with diamond named "&adeneme" with lore "&7Deneme &cAktif Degil." to close
        if arg 1 is online:
            open chest with 1 rows named "&bSandigim" to player
            if {elmas.%arg 1%} is greater than or equal to 1:
                format slot 1 of player with diamond of unbreaking 1 named "&aDeneme" with lore "&7MadalyaDurumu: &2Aktif." to close
            else:
                format slot 1 of player with diamond of unbreaking 1 named "&aDeneme" with lore "&7Deneme &caktif degil." to close
        else:
            send "&cDogru kullanım: &e-/sandık <oyuncu>" to player
Yardımın İçin Teşekkür Ederim Konu Kilit
 
Durum
Mesaj gönderimine kapalı.
Yukarı