Skocz do zawartości
  • 0

cuboid | permisję błąd


Pytanie

witam, potrzebuje pomocy w napisaniu skryptu, po którego wpisaniu

/komenda arg 1 (w moim przypadku free)

  Cytat

 

                if arg 1 is "free":
                        make console execute command "pex user %player% add cuboid.free"
                        give player 1 yellow wool named "&2DARMOWY &7CUBOID → &8%player%"
                        wait 1 tick
                        send "&7Otrzymałeś &2darmowy&7 cuboid."
                        stop

 

dostanie się możliwość położenia wełny z cuboidem, w przeciwnym wypadku nie będzie ona działała jako cuboid a jako zwykła wełna

  Cytat

if player has permission "cuboid.free":

on place yellow wool:
        send "{@tag} &7Trwa zakładanie cuboida..."
        make console execute command "pex user %player% add worldguard.*"
        make console execute command "pex user %player% add worldedit.*"
        execute player command "//pos1"
        execute player command "//pos2"        
        execute player command "//expand {@teren} n"
        execute player command "//expand {@teren} e"
        execute player command "//expand {@teren} s"
        execute player command "//expand {@teren} w"
        execute player command "//expand vert"
        execute player command "rg define %player%"
        execute player command "rg flag %player% creeper-explosion deny"
        execute player command "rg flag %player% mob-damage allow"
        execute player command "rg flag %player% mob-spawning allow"
        execute player command "rg flag %player% pvp allow"
        execute player command "/rg addowner %player% %player%"
        execute player command "//pos1"
        execute player command "//pos2"
        make console execute command "pex user %player% remove worldguard.*"
        make console execute command "pex user %player% remove worldedit.*"
        make console execute command "pex user %player% remove cuboid.free"
        send "{@tag} &7Cuboid został &2zalozony&7."
        make console execute command "pex user %player% add teren.lider"
        stop

i żeby komenda /komenda free była komendą jednorazową, jak ktoś to zrobi to całuję po rękach, bo mi nie działa -,-

Edytowane przez Mroczekk
TakiJakTy

Usuwam formatowanie i zmieniam kolor kodu na bardziej widoczny.

Notatka dodana przez TakiJakTy

Odnośnik do komentarza
https://skript.pl/temat/33775-cuboid-permisj%C4%99-b%C5%82%C4%85d/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
                    if arg 1 is "free":
                        if {dc::%player%} is not set:
                            set {dc::%player%} to false
                            execute console command "pex user %player% add cuboid.free"
                            add 1 yellow wool named "&2DARMOWY &7CUBOID → &8%player%" to player's inventory
                       	    wait 1 tick
                            send "&7Otrzymałeś &2darmowy&7 cuboid."
                            stop
                        else:
                          send "&cJuz odebrales darmowy cuboid!"

 

 

Edytowane przez Helios1993
Odnośnik do komentarza
https://skript.pl/temat/33775-cuboid-permisj%C4%99-b%C5%82%C4%85d/#findComment-217862
Udostępnij na innych stronach

  • 0
W dniu 1.07.2019 o 16:44, Helios1993 napisał:

                    if arg 1 is "free":
                        if {dc::%player%} is not set:
                            set {dc::%player%} to false
                            execute console command "pex user %player% add cuboid.free"
                            add 1 yellow wool named "&2DARMOWY &7CUBOID → &8%player%" to player's inventory
                       	    wait 1 tick
                            send "&7Otrzymałeś &2darmowy&7 cuboid."
                            stop
                        else:
                          send "&cJuz odebrales darmowy cuboid!"

 

 

szanuje w <ciach>, wiesz może jak ustawić np. yellow wool, żeby tylko ten dany przez komendę dawał cuboid, inny nie?

Edytowane przez Mroczekk
Nieaktywny

Nie możesz używać innych słów?

- Ostrzeżenie

TakiJakTy

Usuwam wulgaryzm!

Notatka dodana przez TakiJakTy

Odnośnik do komentarza
https://skript.pl/temat/33775-cuboid-permisj%C4%99-b%C5%82%C4%85d/#findComment-217875
Udostępnij na innych stronach

  • 0

ty to serio dałeś na górze? XD

on place:
    if player's tool is yellow wool named "&2DARMOWY &7CUBOID → &8%player%":

 

Edytowane przez Helios1993
Odnośnik do komentarza
https://skript.pl/temat/33775-cuboid-permisj%C4%99-b%C5%82%C4%85d/#findComment-217915
Udostępnij na innych stronach

  • 0
1 godzinę temu, Helios1993 napisał:

ty to serio dałeś na górze? XD


on place:
    if player's tool is yellow wool named "&2DARMOWY &7CUBOID → &8%player%":

 

nie wiem co robię źle, isze że nie rozumie tego 

zrób mi to jak możesz

Cytat

 

on place yellow wool:
        send "{@tag} &7Trwa zakładanie cuboida..."
        wait 2 seconds
        make console execute command "pex user %player% add worldguard.*"
        make console execute command "pex user %player% add worldedit.*"
        execute player command "//pos1"
        execute player command "//pos2"        
        execute player command "//expand {@teren} n"
        execute player command "//expand {@teren} e"
        execute player command "//expand {@teren} s"
        execute player command "//expand {@teren} w"
        execute player command "//expand vert"
        execute player command "rg define %player%"
        execute player command "rg flag %player% greeting {@tag} &7Wchodzisz na teren &8cuboida&7."
        execute player command "rg flag %player% farewell {@tag} &7Opuszczasz teren &8cuboida&7."
        execute player command "rg flag %player% creeper-explosion allow"
        execute player command "rg flag %player% mob-damage allow"
        execute player command "rg flag %player% mob-spawning allow"
        execute player command "rg flag %player% pvp allow"
        execute player command "//pos1"
        execute player command "//pos2"
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        execute player command "/rg addowner %player% %player%"
        wait 1 tick
        execute player command "/rg addowner %player% %player%"
        make console execute command "pex user %player% remove worldguard.*"
        make console execute command "pex user %player% remove worldedit.*"
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send ""
        send "{@tag} &7Cuboid został &2zalozony&7."
        make console execute command "pex user %player% add teren.lider"
        stop


 

bede wdzieczny

Odnośnik do komentarza
https://skript.pl/temat/33775-cuboid-permisj%C4%99-b%C5%82%C4%85d/#findComment-217920
Udostępnij na innych stronach

  • 0
on place:
    if player's tool is yellow wool named "&2DARMOWY &7CUBOID → &8%player%":
        send "{@tag} &7Trwa zakładanie cuboida..."
        wait 2 seconds
        make console execute command "pex user %player% add worldguard.*"
        make console execute command "pex user %player% add worldedit.*"
        execute player command "//pos1"
        execute player command "//pos2"        
        execute player command "//expand {@teren} n"
        execute player command "//expand {@teren} e"
        execute player command "//expand {@teren} s"
        execute player command "//expand {@teren} w"
        execute player command "//expand vert"
        execute player command "rg define %player%"
        execute player command "rg flag %player% greeting {@tag} &7Wchodzisz na teren &8cuboida&7."
        execute player command "rg flag %player% farewell {@tag} &7Opuszczasz teren &8cuboida&7."
        execute player command "rg flag %player% creeper-explosion allow"
        execute player command "rg flag %player% mob-damage allow"
        execute player command "rg flag %player% mob-spawning allow"
        execute player command "rg flag %player% pvp allow"
        execute player command "//pos1"
        execute player command "//pos2"
        loop 100 times:
          send ""
        execute player command "/rg addowner %player% %player%"
        wait 1 tick
        execute player command "/rg addowner %player% %player%"
        make console execute command "pex user %player% remove worldguard.*"
        make console execute command "pex user %player% remove worldedit.*"
        loop 100 times:
          send ""
        send "{@tag} &7Cuboid został &2zalozony&7."
        make console execute command "pex user %player% add teren.lider"
        stop

 

Odnośnik do komentarza
https://skript.pl/temat/33775-cuboid-permisj%C4%99-b%C5%82%C4%85d/#findComment-217926
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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