Çözüldü AP - Otosat - Acıkmama

  • Konuyu Başlatan Konuyu Başlatan IMasiveHD2
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 1.237
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Kod:
//Ayarlar
options:
    acıkmamayetki: essentials.op
    autopickupyetki: essentials.op
    otosatyetki: essentials.op
    ozellikkomutyetki: essentials.*
//Acıkmama
on hunger meter change:
    if player has permission "{@acıkmamayetki}":
        cancel event


//Auto Pickup
on break of cobblestone:
    if player has permission "{@autopickupyetki}":
        cancel event
        set event-block to air
        give 1 cobblestone to player

//otosat
on pickup of pumpkin:
    if player has permission "{@otosatyetki}":
        if player has 64 pumpkin:
            remove 64 pumpkin from player's inventory
            send "&bGabaklar satıldı"
            add 400 to player's balance


command /ozellikver [<player>] [<text>]:
    trigger:
        if player has permission "{@ozellikkomutyetki}":
            if arg 2 is set:
                if arg 2 is "acıkmama" or "acikmama" or "Acıkmama" or "Acikmama":
                    send "&bAçıkmama özelliği verildi!"
                    add {@acıkmamayetki} to arg 1's permissions
                else if arg 2 is "autopickup" or "Autopickup" or "AutoPickup":
                    send "&bAutoPickup özelliği verildi!"
                    add {@autopickupyetki} to arg 1's permissions
                else if arg 2 is "otosat" or "Otosat" or "OtoSat":
                    send "&bOtosat özelliği verildi!"
                    add {@otosatyetki} to arg 1's permissions
                else:
                    send "&bKullanım -> /ozellikver <oyuncuadı> <ozellik>. -> Özellikler: acıkmama autopickup otosat"
                stop
            send "&bKullanım -> /ozellikver <oyuncuadı> <ozellik>. -> Özellikler: acıkmama autopickup otosat"
            stop
        send "&bYetkin yok"

command /ozellikal [<player>] [<text>]:
    trigger:
        if player has permission "{@ozellikkomutyetki}":
            if arg 2 is set:
                if arg 2 is "acıkmama" or "acikmama" or "Acıkmama" or "Acikmama":
                    send "&bAçıkmama özelliği alındı!"
                    remove {@acıkmamayetki} from arg 1's permissions
                else if arg 2 is "autopickup" or "Autopickup" or "AutoPickup":
                    send "&bAutoPickup özelliği alındı!"
                    remove {@autopickupyetki} from arg 1's permissions
                else if arg 2 is "otosat" or "Otosat" or "OtoSat":
                    send "&bOtosat özelliği alındı!"
                    remove {@otosatyetki} from arg 1's permissions
                else:
                    send "&bKullanım -> /ozellikal <oyuncuadı> <ozellik>. -> Özellikler: acıkmama autopickup otosat"
                stop
            send "&bKullanım -> /ozellikal <oyuncuadı> <ozellik>. -> Özellikler: acıkmama autopickup otosat"
            stop
        send "&bYetkin yok"

Dener misin
aga bir de siteden satacağım için websend de satın alınınca işleyecek komutlara
ozellikver %player% acikmama yazınca konsola yetkin yok diyor nasıl olacak o :d
 
bu kırınca yapıyor sadece ben direk envanterde olunca satmasını istiyorum oto, chestlerden alıyotlar ne de osla

Kod:
options:
    kacbalkabagi: 64
    fiyat: 400
    prefix: &e&lSatış &8&l»
    yetki: sat.op
    
on leftclick with pumpkin:
    if player has permission "{@kacbalkabagi}":
        if player has {@kacbalkabagi} pumpkin:
            send "{@prefix} Balkabaklar Satıldı." to player
            add {@fiyat} to player's balance
            remove {@kacbalkabagi} pumpkin from player's inventory
 
Kod:
//Ayarlar
options:
    acıkmamayetki: essentials.op
    autopickupyetki: essentials.op
    otosatyetki: essentials.op
//Acıkmama
on hunger meter change:
    if player has permission "{@acıkmamayetki}":
        cancel event


//Auto Pickup
on break of cobblestone:
    if player has permission "{@autopickupyetki}":
        cancel event
        set event-block to air
        give 1 cobblestone to player

//otosat
on pickup of pumpkin:
    if player has permission "{@otosatyetki}":
        if player has 64 pumpkin:
            remove 64 pumpkin from player's inventory
            send "&bGabaklar satıldı"
            add 400 to player's balance


command /ozellikver [<player>] [<text>]:
    trigger:
        if sender is console:
            if arg 2 is set:
                if arg 2 is "acıkmama" or "acikmama" or "Acıkmama" or "Acikmama":
                    send "&bAçıkmama özelliği verildi!"
                    add {@acıkmamayetki} to arg 1's permissions
                else if arg 2 is "autopickup" or "Autopickup" or "AutoPickup":
                    send "&bAutoPickup özelliği verildi!"
                    add {@autopickupyetki} to arg 1's permissions
                else if arg 2 is "otosat" or "Otosat" or "OtoSat":
                    send "&bOtosat özelliği verildi!"
                    add {@otosatyetki} to arg 1's permissions
                else:
                    send "&bKullanım -> /ozellikver <oyuncuadı> <ozellik>. -> Özellikler: acıkmama autopickup otosat"
                stop
            send "&bKullanım -> /ozellikver <oyuncuadı> <ozellik>. -> Özellikler: acıkmama autopickup otosat"
            stop
        send "&bBu Komutu Kullanamazsın!"

command /ozellikal [<player>] [<text>]:
    trigger:
        if sender is console:
            if arg 2 is set:
                if arg 2 is "acıkmama" or "acikmama" or "Acıkmama" or "Acikmama":
                    send "&bAçıkmama özelliği alındı!"
                    remove {@acıkmamayetki} from arg 1's permissions
                else if arg 2 is "autopickup" or "Autopickup" or "AutoPickup":
                    send "&bAutoPickup özelliği alındı!"
                    remove {@autopickupyetki} from arg 1's permissions
                else if arg 2 is "otosat" or "Otosat" or "OtoSat":
                    send "&bOtosat özelliği alındı!"
                    remove {@otosatyetki} from arg 1's permissions
                else:
                    send "&bKullanım -> /ozellikal <oyuncuadı> <ozellik>. -> Özellikler: acıkmama autopickup otosat"
                stop
            send "&bKullanım -> /ozellikal <oyuncuadı> <ozellik>. -> Özellikler: acıkmama autopickup otosat"
            stop
        send "&bBu Komutu Kullanamazsın!"

Sorun çözülürse en iyi cevap olarak işaretlersen sevinirim.
 
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