options: komenda: world #Uprawnienia: teleportacja: swiaty.teleport #Używanie komendy do teleportacji między światami blokowanieSwiatow: swiaty.blokada #Używanie komendy do blokowania teleportacji do danych światów #Komunikaty: pref: &1[&3Światy&1] #Prefiks komunikatów wykonawcaNieJestGraczem: &dTej komendy może użyć tylko gracz! #Komenda do teleportacji jest wykonywana z konsoli teleportRozpoczety: &dProces teleportu już został rozpoczęty! #Proces teleportu już jest rozpoczęty tenSamSwiat: &dJuż jesteś w tym świecie! #Gracz już jest w tym świecie graczSiePoruszyl: &dTeleportacja anulowana, poruszyłeś się. #Gracz podczas teleportacji poruszył się sukces: &3Teleportacja przebiegła pomyslnie! #Sukces teleportacji teleportowanie: &3Teleportacja... Nie ruszaj się! #Info o rozpoczęciu teleportacji infoDlaInnych: &3Gracz &b%{_p}%&3 przeszedł do świata &b%{_w}%&3! #Info dla INNYCH graczy o teleportacji danego gracza, {_p} - gracz, {_w} - świat swiatZablokowany: &dTeleportacja do tego świata jest chwilowo zablokowana! Przepraszamy. #Teleportacja do danego świata jest zablokowana #GUI: nazwaGUI: &6Wybierz świat! #Nazwa GUI z wyborem światów item1: diamond sword named "&eSurvival" with lore "Kliknij, aby wybrać!" #Item do świata 1 item2: diamond named "&eSkywars" with lore "Kliknij, aby wybrać!" #Item do świata 2 item3: diamond block named "&eCreative" with lore "Kliknij, aby wybrać!" #Item do świata 3 #Nazwy światów swiat1: world #Nazwa świata 1 swiat2: skywars #Nazwa świata 2 swiat3: creative #Nazwa świata 3 #Spawny światów: swiat1spawn: (-235.5, 64, -183.5) swiat2spawn: (-235.5, 64, -183.5) swiat3spawn: (-235.5, 64, -183.5) on join: if {{@swiat1}::%player%} is not set: set {{@swiat1}::%player%} to the location {@swiat1spawn} in world "{@swiat1}" if {{@swiat2}::%player%} is not set: set {{@swiat2}::%player%} to the location {@swiat2spawn} in world "{@swiat2}" if {{@swiat3}::%player%} is not set: set {{@swiat3}::%player%} to the location {@swiat3spawn} in world "{@swiat3}" command /{@komenda}: permission: {@teleportacja} trigger: if executor is console: send "{@pref} {@wykonawcaNieJestGraczem}" to executor stop if {start::%player%} is 1: send "{@pref} {@teleportRozpoczety}" close inventory of player stop set {_gw} to chest inventory with 1 row named "{@nazwaGUI}!" set slot 2 of {_gw} to {@item1} set slot 4 of {_gw} to {@item2} set slot 6 of {_gw} to {@item3} open {_gw} to player on inventory click: if name of player's current inventory is "{@nazwaGUI}": cancel event if clicked slot is 2: if {blokada::{@swiat1}} is set: if player doesn't have permission "{@blokowanieSwiatow}": send "{@pref} {@swiatZablokowany}" stop if world of player is "{@swiat1}": send "{@pref} {@tenSamSwiat}" close player's inventory stop teleport(player,"{@swiat1}") if clicked slot is 4: if {blokada::{@swiat2}} is set: if player doesn't have permission "{@blokowanieSwiatow}": send "{@pref} {@swiatZablokowany}" stop if world of player is "{@swiat1}": send "{@pref} {@tenSamSwiat}" close player's inventory stop teleport(player,"{@swiat1}") if clicked slot is 6: if {blokada::{@swiat3}} is set: if player doesn't have permission "{@blokowanieSwiatow}": send "{@pref} {@swiatZablokowany}" stop if world of player is "{@swiat1}": send "{@pref} {@tenSamSwiat}" close player's inventory stop teleport(player,"{@swiat1}") function teleport(p: Player, w:String): if {start::%{_p}%} is 1: send "{@pref} {@teleportRozpoczety}" to {_p} close inventory of {_p} stop set {start::%{_p}%} to 1 close inventory of {_p} send "{@pref} {@teleportowanie}" to {_p} wait 1 second if world of {_p} is "{@swiat1}": set {{@swiat1}::%{_p}%} to location of {_p} else if world of {_p} is "{@swiat2}": set {{@swiat2}::%{_p}%} to location of {_p} else if world of {_p} is "{@swiat3}": set {{@swiat3}::%{_p}%} to location of {_p} set {_ct} to 10 set {_gracz} to location of {_p} while {_ct} > 0: if distance between {_gracz} and location of {_p} < 0.1: wait 10 ticks remove 1 from {_ct} else: send "{@pref} {@graczSiePoruszyl}" to {_p} delete {start::%{_p}%} stop if distance between {_gracz} and location of {_p} < 0.1: if {_w} is "{@swiat1}": teleport {_p} to {{@swiat1}::%{_p}%} info("{@swiat1}", {_p}) else if {_w} is "{@swiat2}": teleport {_p} to {{@swiat2}::%{_p}%} info("{@swiat2}", {_p}) else if {_w} is "{@swiat3}": teleport {_p} to {{@swiat3}::%{_p}%} info("{@swiat3}", {_p}) send "{@pref} {@sukces}" to {_p} delete {start::%{_p}%} stop else: send "{@pref} {@graczSiePoruszyl}" to {_p} delete {start::%{_p}%} stop function info(w:String, p:Player): loop all players: if loop-player is not {_p}: send "{@pref} {@infoDlaInnych}" to loop-player command /blokuj []: permission: {@blokowanieSwiatow} trigger: if arg 1 is not set: send "Podaj poprawny argument!" stop if arg 1 is not "{@swiat1}" or "{@swiat2}" or "{@swiat3}": send "Podaj poprawny argument!" stop if {blokada::%arg 1%} is set: delete {blokada::%arg 1%} send "Blokada tego świata została wyłączona!" stop set {blokada::%arg 1%} to true send "Blokada tego świata została włączona!"