on script load:
if folder "plugins/cPlayers" doesn't exists:
create folder "plugins/cPlayers"
create folder "plugins/cPlayers/players"
if file "plugins/cPlayers/config.yml" doesn't exists:
create file "plugins/cPlayers/config.yml"
set "gracz.logo_serwera" to "[LOGOSERWERA]" in yaml file "plugins/cPlayers/config.yml"
set {logo} to single value "gracz.logo_serwera" get of "plugins/cPlayers/config.yml"
set "gracz.nowy_gracz" to "&3Przywitajmy nowego gracza &c%player% na serwerze!" in yaml file "plugins/cPlayers/config.yml"
set "gracz.wejscie_na_serwer" to "&c%player% &3dolaczyl na serwer" in yaml file "plugins/cPlayers/config.yml"
set "gracz.wyjscie_z_serwera" to "&c%player% &wyszedl z serwera" in yaml file "plugins/cPlayers/config.yml"
broadcast "[cPlayers] config.yml zostal stworzony pomyslnie!"
options:
LogoSerwera: %{logo}%
on first join:
set {newplayer} to single value "gracz.logo_serwera" get of "plugins/cPlayers/config.yml"
send all players title "{@LogoSerwera}" with subtitle "%{newplayer}%"
on join:
set {joinplayer} to single value "gracz.wejscie_na_serwer" get of "plugins/cPlayers/config.yml"
set join message to ""
loop all players:
set action bar of loop-player to "%{joinplayer}%"
on quit:
set {quitplayer} to single value "gracz.wyjscie_z_serwera" get of "plugins/cPlayers/config.yml"
set quit message to ""
loop all players:
set action bar of loop-player to "%{quitplayer}%"
Problem jest w tym ze wyskakuja takie errory:
19:48:58 [INFO] [Skript] Reloading cPlayers.sk...
19:48:58 [SEVERE] "gracz.nowy_gracz" can't be set to anything (cPlayers.sk, line 9: set "gracz.nowy_gracz" to "&3Przywitajmy nowego gracza &c%player% na serwerze!" in yaml file "plugins/cPlayers/config.yml"')
19:48:58 [SEVERE] "gracz.wejscie_na_serwer" can't be set to anything (cPlayers.sk, line 10: set "gracz.wejscie_na_serwer" to "&c%player% &3dolaczyl na serwer" in yaml file "plugins/cPlayers/config.yml"')
19:48:58 [SEVERE] "gracz.wyjscie_z_serwera" can't be set to anything (cPlayers.sk, line 11: set "gracz.wyjscie_z_serwera" to "&c%player% &3wyszedl z serwera" in yaml file "plugins/cPlayers/config.yml"')
19:48:58 [INFO] [Skript] Encountered 3 errors while reloading cPlayers.sk!
Pytanie
czlowiekjaja 0
Siemano, mam problem ze skryptem tutaj kod:
on script load: if folder "plugins/cPlayers" doesn't exists: create folder "plugins/cPlayers" create folder "plugins/cPlayers/players" if file "plugins/cPlayers/config.yml" doesn't exists: create file "plugins/cPlayers/config.yml" set "gracz.logo_serwera" to "[LOGOSERWERA]" in yaml file "plugins/cPlayers/config.yml" set {logo} to single value "gracz.logo_serwera" get of "plugins/cPlayers/config.yml" set "gracz.nowy_gracz" to "&3Przywitajmy nowego gracza &c%player% na serwerze!" in yaml file "plugins/cPlayers/config.yml" set "gracz.wejscie_na_serwer" to "&c%player% &3dolaczyl na serwer" in yaml file "plugins/cPlayers/config.yml" set "gracz.wyjscie_z_serwera" to "&c%player% &wyszedl z serwera" in yaml file "plugins/cPlayers/config.yml" broadcast "[cPlayers] config.yml zostal stworzony pomyslnie!" options: LogoSerwera: %{logo}% on first join: set {newplayer} to single value "gracz.logo_serwera" get of "plugins/cPlayers/config.yml" send all players title "{@LogoSerwera}" with subtitle "%{newplayer}%" on join: set {joinplayer} to single value "gracz.wejscie_na_serwer" get of "plugins/cPlayers/config.yml" set join message to "" loop all players: set action bar of loop-player to "%{joinplayer}%" on quit: set {quitplayer} to single value "gracz.wyjscie_z_serwera" get of "plugins/cPlayers/config.yml" set quit message to "" loop all players: set action bar of loop-player to "%{quitplayer}%"
Problem jest w tym ze wyskakuja takie errory:
19:48:58 [INFO] [Skript] Reloading cPlayers.sk... 19:48:58 [SEVERE] "gracz.nowy_gracz" can't be set to anything (cPlayers.sk, line 9: set "gracz.nowy_gracz" to "&3Przywitajmy nowego gracza &c%player% na serwerze!" in yaml file "plugins/cPlayers/config.yml"') 19:48:58 [SEVERE] "gracz.wejscie_na_serwer" can't be set to anything (cPlayers.sk, line 10: set "gracz.wejscie_na_serwer" to "&c%player% &3dolaczyl na serwer" in yaml file "plugins/cPlayers/config.yml"') 19:48:58 [SEVERE] "gracz.wyjscie_z_serwera" can't be set to anything (cPlayers.sk, line 11: set "gracz.wyjscie_z_serwera" to "&c%player% &3wyszedl z serwera" in yaml file "plugins/cPlayers/config.yml"') 19:48:58 [INFO] [Skript] Encountered 3 errors while reloading cPlayers.sk!
Odnośnik do komentarza
Udostępnij na innych stronach
5 odpowiedzi na to pytanie
Rekomendowane odpowiedzi