Skocz do zawartości
  • 0

Problem z Toolsami


Crystal_PL

Pytanie

Mam taki oto kodzik i czy mógłby mi ktoś naprawić te błędy w nim? Błędy: 

Spoiler

Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Toolsy.sk, line 4: if arg 2 is set:')
 Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Toolsy.sk, line 5: if player has permission "wario.tools.kick":')
 Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Toolsy.sk, line 6: if arg 1 has permission "wario.tools.kick":')
[12:23:59 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Toolsy.sk, line 13: else:')
[12:23:59 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Toolsy.sk, line 19: else:')
[12:23:59 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Toolsy.sk, line 9: else:')
[12:23:59 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Toolsy.sk, line 19: else:')
[12:23:59 INFO]: [Skript] Encountered 2 errors while reloading Toolsy.sk!

command /kick [<player>] [<text>]:
        trigger:
                if arg 1 is set:
                        if arg 2 is set:
                        if player has permission "wario.tools.kick":
                        if arg 1 has permission "wario.tools.kick":
                        send "&8[&3&lPing&f&lCraft&8] &cNie mozna wyrzucic tego gracza!"
                        stop
                        else:
                                kick the arg 1 due to "&cZostales wyrzucony z serwerwa za: %arg 2%"
                                broadcast "&8[&3&lPing&f&lCraft&8] &7Gracz &b%arg 1% &7zostal wyrzucony za &b%arg 2%"
                                stop
                                else:
                        send "&8[&3&lPing&f&lCraft&8] &4Nie masz dostepu do tej komendy."
                        stop
                else:
                        send "&8[&3&lPing&f&lCraft&8] &cPodaj powod!"
                        stop
                        else:
                send "&8[&3&lPing&f&lCraft&8] &cPodaj nick gracza!"
                stop

Odnośnik do komentarza
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

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