Witam, mam problem z poniższym skryptem prosiłbym o wysłanie prawidłowego kodu oraz wytłumaczenie na czym polega błąd
Skrypt :
command /utworzevent [<text>][<number>]
permission: kubax.eventcreate
permissionmessage:&4&kSDF &4&uNie masz wystarczających uprawnień!&4&kSDD
trigger:if arg 1 not set:
send title "&cBlad!"for3 seconds
send "&4&kSDD &4&u Błąd! &aPoprawne użycie &f: &a/utworzevent &f[&6Nazwa&f] &f[&6Czas TP&f]" to player
stop
if arg 2 not set:
send title "&cBlad!"for3 seconds
send "&4&kSDD &4&u Błąd! &aPoprawne użycie &f: &a/utworzevent &f[&6Nazwa&f] &f[&6Czas TP&f]" to player
stop
if{nazwaeventu} is not set
send "&4&kSDD &cObecnie jest włączone tp na inny event! Poczekaj chwilę! &4&kSDD"if arg 1 and arg 2 is set:set{nazwaeventu} to arg 1set{organizator} to %player%set{eventtrwa} to 1set{wejscianaevent}0
send "&bRozpoczął się event %arg 1%!" to all players
wait 3 seconds
send "&bAby dołączyć na event wpisz /eventdolacz %arg 1%" to all players
send "&bTp zamyka się po &6%arg 2% &bsekundach!" to all players
wait %arg 2% seconds
send "&4&kSDD &cTP ZAMKNIĘTE! &4&kSDD" to all players
command /eventdolacz:
trigger:if{nazwaeventu} is not set
send "&bObecnie nie trwa żaden event z otwartym tp!" to player
stop
else
execute console command "tp %player% to {organizator}"
send "&bDołączyłeś do eventu!"
add 1 to {wejscianaevent}
command /eventinfo:
trigger:if{nazwaeventu} is not set
send "&b» &fInfo Event! &b«" to player
send "&f Organizator eventu to : &4Brak Eventu!" to player
send "&f Nazwa eventu to : &4Brak Eventu!" to player
send "&b» &cNetherowe Wzgórza &b«" to player
else
send "&b» &fInfo Event! &b«" to player
send "&f Organizator eventu to : &6{organizator}" to player
send "&f Nazwa eventu to : &6{nazwaeventu}" to player
send "&b» &cNetherowe Wzgórza &b«" to player
command /zakonczevent:
permission: kubax.eventzakoncz
permissionmessage:&4&kSDF &4&uNie masz wystarczających uprawnień!&4&kSDD
trigger:if{eventtrwa} is not set
send "&bNie trwa obecnie żaden event!" to player
elsedelete{organizator}delete{eventtrwa}delete{nazwaeventu}
send "&bEvent pomyślnie zakończony!" to player
send "&bEvent został zakończony! Było na nim &6{wejscianaevent} &bgraczy! Dziękujemy za obecność!"delete{wejscianaevent}
Błędy :
Spoiler
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 14: send "&4&
kSDD &cObecnie jest włączone tp na inny event! Poczekaj chwilę! &4&kSDD"')
[20:50:57] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequen
t 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. (event.sk, line 26: command /eventdolacz:')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 29: send "&bO
becnie nie trwa żaden event z otwartym tp!" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 30: stop')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 32: execute c
onsole command "tp %player% to {organizator}"')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 33: send "&bD
ołączyłeś do eventu!"')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 34: add 1 to
{wejscianaevent}')
[20:50:57] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequen
t 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. (event.sk, line 36: command /eventinfo:')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 39: send "&b»
&fInfo Event! &b«" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 40: send "&f
Organizator eventu to : &4Brak Eventu!" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 41: send "&f
Nazwa eventu to : &4Brak Eventu!" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 42: send "&b»
&cNetherowe Wzgórza &b«" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 44: send "&b»
&fInfo Event! &b«" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 45: send "&f
Organizator eventu to : &6{organizator}" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 46: send "&f
Pytanie
KubaX 0
Witam, mam problem z poniższym skryptem prosiłbym o wysłanie prawidłowego kodu oraz wytłumaczenie na czym polega błąd
Skrypt :
Błędy :
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 14: send "&4&
kSDD &cObecnie jest włączone tp na inny event! Poczekaj chwilę! &4&kSDD"')
[20:50:57] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequen
t 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. (event.sk, line 26: command /eventdolacz:')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 29: send "&bO
becnie nie trwa żaden event z otwartym tp!" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 30: stop')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 32: execute c
onsole command "tp %player% to {organizator}"')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 33: send "&bD
ołączyłeś do eventu!"')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 34: add 1 to
{wejscianaevent}')
[20:50:57] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequen
t 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. (event.sk, line 36: command /eventinfo:')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 39: send "&b»
&fInfo Event! &b«" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 40: send "&f
Organizator eventu to : &4Brak Eventu!" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 41: send "&f
Nazwa eventu to : &4Brak Eventu!" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 42: send "&b»
&cNetherowe Wzgórza &b«" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 44: send "&b»
&fInfo Event! &b«" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 45: send "&f
Organizator eventu to : &6{organizator}" to player')
[20:50:57] [Server thread/ERROR]: indentation error: expected 1 tab, but found 2 tabs (event.sk, line 46: send "&f
Odnośnik do komentarza
Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi