Skocz do zawartości
  • 0

Potrzebuje by ktos mi dodal permisje do skryptu help


Pytanie

dodalby mi ktos permisje do skryptu na alerty ze np bc.admin

 

command /bc [<text>] [<text>]:
    permission: bc
    trigger:
        set {_text} to arg 2
        set {_text} to "&4Test" if arg 2 is not set
        if arg 1 is "actionbar":
            send action bar {_text} to all players
            stop
        if arg 1 is "title":
            send title "&8&l<&4&lUWAGA&8&l>" with subtitle {_text} to all players for 5 seconds
            stop
        if arg 1 is "chat":
            send "&6&l&m----------&f&6&l>" and {_text} and "&6&l&m----------&f&6&l>" to all players
            stop
        send "&6/bc &8<chat/actionbar/title>"

 

Glicz

Wstawiam kod w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
https://skript.pl/temat/48395-potrzebuje-by-ktos-mi-dodal-permisje-do-skryptu-help/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /bc [<text>] [<text>]:
    permission: bc.admin
  	permission message: &cBrak uprawnień
    trigger:
        set {_text} to arg 2
        set {_text} to "&4Test" if arg 2 is not set
        if arg 1 is "actionbar":
            send action bar {_text} to all players
            stop
        if arg 1 is "title":
            send title "&8&l<&4&lUWAGA&8&l>" with subtitle {_text} to all players for 5 seconds
            stop
        if arg 1 is "chat":
            send "&6&l&m----------&f&6&l>" and {_text} and "&6&l&m----------&f&6&l>" to all players
            stop
        send "&6/bc &8<chat/actionbar/title>"

Mógłbyś sprecyzować dokładnie co masz na myśli? Bo nie wiem czy dobrze zrozumiałem. Dodałem do tego kodu permisje bc.admin i wiadomość o braku permisji

Odnośnik do komentarza
https://skript.pl/temat/48395-potrzebuje-by-ktos-mi-dodal-permisje-do-skryptu-help/#findComment-302119
Udostępnij na innych stronach

  • 0
W dniu 29.04.2021 o 12:33, vWorsky napisał:

dodalby mi ktos permisje do skryptu na alerty ze np bc.admin

 

command /bc [<text>] [<text>]:
    permission: bc.admin
    permission message: &cBrak uprawnien: &f(bc.admin)
    trigger:
        set {_text} to arg 2
        set {_text} to "&4Test" if arg 2 is not set
        if arg 1 is "actionbar":
            send action bar {_text} to all players
            stop
        if arg 1 is "title":
            send title "&8&l<&4&lUWAGA&8&l>" with subtitle {_text} to all players for 5 seconds
            stop
        if arg 1 is "chat":
            send "&6&l&m----------&f&6&l>" and {_text} and "&6&l&m----------&f&6&l>" to all players
            stop
        send "&6/bc &8<chat/actionbar/title>"

 

Dodane!

Odnośnik do komentarza
https://skript.pl/temat/48395-potrzebuje-by-ktos-mi-dodal-permisje-do-skryptu-help/#findComment-307672
Udostępnij na innych stronach

  • 0
command /bc [<text>] [<text>]:
    trigger:
  		if player has permission "bc.admin":
          set {_text} to arg 2
          set {_text} to "&4Test" if arg 2 is not set
          if arg 1 is "actionbar":
              send action bar {_text} to all players
              stop
          if arg 1 is "title":
              send title "&8&l<&4&lUWAGA&8&l>" with subtitle {_text} to all players for 5 seconds
              stop
          if arg 1 is "chat":
              send "&6&l&m----------&f&6&l>" and {_text} and "&6&l&m----------&f&6&l>" to all players
              stop
          send "&6/bc &8<chat/actionbar/title>"
  		else:
  			send "&cNie posiadasz uprawnien!"

Proszę bardzo, tylko musisz sobie wytabować to ponieważ w code sie buguje 😧

Odnośnik do komentarza
https://skript.pl/temat/48395-potrzebuje-by-ktos-mi-dodal-permisje-do-skryptu-help/#findComment-307689
Udostępnij na innych stronach

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ę...