Skocz do zawartości
  • 0

GUI się nie zamyka


Dadudze

Pytanie

gui się nie zamyka ani komenda się nie wywołuje (w kodzie z ostatniej linijki)

	command /sklep:
    trigger:
        open chest with 3 rows named "&4Sklep" to player
        format slot 10 of player with 1 of Enchanted Book named "&4Klasy" with lore "&8Kliknij aby otworzyc" to close then run [execute player command "/sklepklasy"]
command /kupowanie <text>:
    trigger:
        if arg-1 is "ninja":
            set {klasa.%player%} to value "info.klasa" get of "plugins/!Gracze/%player%.yml"
            if {klasa.%player%} is "Ninja lvl1":
                if player's balance is greater than or equal to 6999:
                    execute console command "eco take %player% 7000"
                    set "info.klasa" to "Ninja lvl2" in yaml file "plugins/!Gracze/%player%.yml"
                    send "&aPomysnie kupiono" to player
                    stop
                else:
                    send "&4Nie masz tyle pieniedzy" to player
                    stop
            if {klasa.%player%} is "Ninja lvl2":
                if player's balance is greater than or equal to 9999:
                    execute console command "eco take %player% 10000"
                    set "info.klasa" to "Ninja lvl3" in yaml file "plugins/!Gracze/%player%.yml"
                    send "&aPomysnie kupiono" to player
                    stop
                else:
                    send "&4Nie masz tyle pieniedzy" to player
                    stop
            if {klasa.%player%} is "Ninja lvl3":
                send "&aPosiadasz juz Ninja lvl3!" to player
                stop
            if player's balance is greater than or equal to 4999:
                execute console command "eco take %player% 5000"
                set "info.klasa" to "Ninja lvl1" in yaml file "plugins/!Gracze/%player%.yml"
                send "&aPomysnie kupiono" to player
                stop
            else:
                send "&aPomysnie kupiono" to player
command /sklepklasy:
    trigger:
        wait 2 ticks
        open chest with 3 rows named "&4Klasy" to player
        format slot 10 of player with 1 of Enchanted Book named "&4Ninja" with lore "&aNinja potrafi unikac uderzen||&4LVL1: 10proc.||&4LVL2: 20proc.||&4LVL3: 35proc.||&8Koszt lvl1: 5000 ||&8Koszt lvl2: 7000 ||&8Koszt lvl3: 10000" to close then run [execute player command "/kupowanie ninja"]
	

Odnośnik do komentarza
Udostępnij na innych stronach

0 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nie udzielono jeszcze odpowiedzi na to pytanie

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...