on inventory click: if name of current inventory is "{@tag}": cancel event if name of event-item is "&b&lHOME: &a%{homie::nazwa1::%player%}%": set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" send "{@tag} &7Nie ruszaj się przez 5 sekund." wait 5 seconds if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: teleport player to {homie::location1::%player%} send "{@tag} &7Przeteleportowano cię do homea o nazwie: &a&l%{homie::nazwa1::%player%}%" stop else: send "{@tag} &cRuszyles sie, teleportacja przerwana." stop if name of clicked item is "&b&lHOME: &a%{homie::nazwa2::%player%}%": set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" send "{@tag} &7Nie ruszaj się przez 5 sekund." wait 5 seconds if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: teleport player to {homie::location2::%player%} send "{@tag} &7Przeteleportowano cię do homea o nazwie: &a&l%{homie::nazwa2::%player%}%" stop else: send "{@tag} &cRuszyles sie, teleportacja przerwana." stop if name of clicked item is "&b&lHOME: &a%{homie::nazwa3::%player%}%": set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" send "{@tag} &7Nie ruszaj się przez 5 sekund." wait 5 seconds if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: teleport player to {homie::location3::%player%} send "{@tag} &7Przeteleportowano cię do homea o nazwie: &a&l%{homie::nazwa3::%player%}%" stop else: send "{@tag} &cRuszyles sie, teleportacja przerwana." stop if name of clicked item is "&b&lHOME: &a%{homie::nazwa4::%player%}%": set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" send "{@tag} &7Nie ruszaj się przez 5 sekund." wait 5 seconds if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: teleport player to {homie::location4::%player%} send "{@tag} &7Przeteleportowano cię do homea o nazwie: &a&l%{homie::nazwa4::%player%}%" stop else: send "{@tag} &cRuszyles sie, teleportacja przerwana." stop if name of clicked item is "&b&lHOME: &a%{homie::nazwa5::%player%}%": set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" send "{@tag} &7Nie ruszaj się przez 5 sekund." wait 5 seconds if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: teleport player to {homie::location5::%player%} send "{@tag} &7Przeteleportowano cię do homea o nazwie: &a&l%{homie::nazwa5::%player%}%" stop else: send "{@tag} &cRuszyles sie, teleportacja przerwana." stop