command administracja: aliases: admini, adm trigger: open chest with 2 rows named "&9» &0Administracja" to player wait 2 ticks if "%inventory name of player's current inventory%" contains "&9» &0Administracja": set {_slot} to 0 set {_y::*} to yaml nodes "admini" from "server/admini.yml" loop {_y::*}: set {_y::ranga::%loop-value%} to yaml value "admini.%loop-value%.ranga" from file "server/admini.yml" set {_y::urlop::%loop-value%} to yaml value "admini.%loop-value%.urlop" from file "server/admini.yml" set {_y::ostatnio::%loop-value%} to yaml value "admini.%loop-value%.ostatnio" from file "server/admini.yml" set {_y::online::%loop-value%} to yaml value "admini.%loop-value%.online" from file "server/admini.yml" set {_player} to loop-value parsed as offlineplayer set {_v::%{_player}%} to {_y::ostatnio::%{_player}%} if {_v::%{_player}%} isn't set: format slot {_slot} of player with 1 of {_player}'s skull named "%{_y::ranga::%{_player}%}% &e%{_player}%" with lore "&7Status: %{_y::online::%{_player}%}%||&7Urlop: %{_y::urlop::%{_player}%}%" to close else: replace all "" in {_v} with "" format slot {_slot} of player with 1 of {_player}'s skull named "%{_y::ranga::%{_player}%}% &e%{_player}%" with lore "&7Status: %{_y::online::%{_player}%}%||&7Urlop: %{_y::urlop::%{_player}%}%||&7Ostatnio: %{_v::%{_player}%}%" to close add 1 to {_slot} command set : permission: admin.skript permission message: &4&lBLAD: &7Nie masz do tego dostepu &8(&cAdmin+&8) trigger: if arg 2 is "S": set yaml value "admini.%arg 1%.ranga" from file "server/admini.yml" to "&9&lS" else if arg 2 is "M": set yaml value "admini.%arg 1%.ranga" from file "server/admini.yml" to "&2&lM" else if arg 2 is "J": set yaml value "admini.%arg 1%.ranga" from file "server/admini.yml" to "&e&lJ" else if arg 2 is "A": set yaml value "admini.%arg 1%.ranga" from file "server/admini.yml" to "&c&lA" else if arg 2 is "online": set yaml value "admini.%arg 1%.online" from file "server/admini.yml" to "&aonline" else if arg 2 is "offline": set yaml value "admini.%arg 1%.online" from file "server/admini.yml" to "&coffline" else if arg 2 is "tak": set yaml value "admini.%arg 1%.urlop" from file "server/admini.yml" to "&aTak" else if arg 2 is "nie": set yaml value "admini.%arg 1%.urlop" from file "server/admini.yml" to "&cNie" else if arg 2 is "delete": delete yaml value "admini.%arg 1%" from file "server/admini.yml" on rightclick on sign: if line 2 contains "Support" or "Moderator" or "JuniorAdmin" or "Admin": set {_player} to uncoloured line 3 parsed as offlineplayer if "%region at event-block%" contains "muzeum": set {_sign} to yaml value "sign" from file "zmienne/%player's uuid%.yml" set {_sign} to {_sign} parsed as number set {_waited} to difference between {_sign} and unix time set {_time} to 4 if {_waited} is less than {_time}: message "&3» &cZwolnij! Przeczekaj &3%{_time} - {_waited}% sekund &czanim znów to zrobisz!" stop if line 3 contains " ": send "&cTego miejsca nikt nie zajmuje..." stop send " &3» &6&l-&e&l-&6&l-&e&l-&6&l-&e&l-&6&l-&e&l-&6&l-&e&l✧ &3» &b&lAdministracja &3« &e&l✧&6&l-&e&l-&6&l-&e&l-&6&l-&e&l-&6&l-&e&l-&6&l- &3«" if {_player} is online: send " &3• &7Gracz: %display name of {_player}%" else: send " &3• &7Gracz: &f&l%{_player}%" send " &3• &7Ranga: %line 2%" set {_status} to yaml value "admini.%{_player}%.online" from file "server/admini.yml" send " &3• &7Status: %{_status}%" if {_player} is offline: set {_ostatnio} to yaml value "admini.%{_player}%.ostatnio" from file "server/admini.yml" send " &3• &7Ostatnio: %{_ostatnio}%" set {_urlop} to yaml value "admini.%{_player}%.urlop" from file "server/admini.yml" send " &3• &7Urlop: %{_urlop}%" send " &3» &6&l-&e&l-&6&l-&e&l-&6&l-&e&l-&6&l-&e&l-&6&l-&e&l✧ &3» &b&lAdministracja &3« &e