Çözüldü "A command event cannot be cancelled" Hatası

  • Konuyu Başlatan Konuyu Başlatan Rixosa
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 673

Rixosa

Odunlara Vur Vur Vur!
Katılım
2 Ekim 2021
Mesajlar
44
Elmaslar
3
Puan
2.010
Minecraft
Rixosa

Discord:

Rixosa#9869

Kod:
command /jobs [<text>] [<text>]:
    trigger:
        if arg-1 is set:
            if arg-1 is "join":
                if arg-2 is set:
                    if arg-2 is "Oduncu":
                        if {meslek.x.%player%} is 0:
                            uncancel event
                            set {meslek.x.%player%} to 1
                            set {%arg-2%.x.%player%} to 1
                        else:
                            send "&cZaten bir mesleğiniz var!" to player
                    else:
                        send "&cBöyle bir meslek bulunmamaktadır! &cMeslekler için: &b/meslekler" to player
            else if arg-1 is "leave":
                if {meslek.x.%player%} is 1:
                    if arg-2 is set:
                        if arg-2 is "Oduncu":
                            if {oduncu.x.%player%} is 1:
                                if player has permission "meslek.oyuncu":
                                    if {meslek.ayril.%player%} = 0:
                                        uncancel event
                                        add 1 to {meslek.ayril.%player%}
                                    else:
                                        send "&cMeslekten ayrılma hakkınız bulunmamaktadır!" to player
line 8 ve line 22 için A command event cannot be cancelled hatası veriyor. Nasıl düzeltebilirim yardım eder misiniz?
 
Son düzenleme:
Bir komutu iptal etmek için on command eventini kullanmalısınız.
 
Eğer belirli argumanlarsa bu kod kullanılabilir.
Kod:
on command:
    full command is "komut arg-1 arg-2"
    cancel event
 

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