#AxCheckPoint - Skrypt na wyznaczanie odległości i CheckPointów command /checkpoint [] [] []: aliases: /hp trigger: if arg 1 is set: if arg 1 is "ustaw" or "set": if arg 2 is set: if {check::%player%::%arg 2%} is not set: set {check::%player%::%arg 2%} to location of player send "&6Ustawiono punkt %arg 2% na %{check::%player%::%arg 2%}%" send player title "&2Ustawiono" with subtitle "&2%location of player%" for 3 seconds else: send "&6Ten punkt juz jest ustawiony! %{check::%player%::%arg 2%}%" else: send "&6Poprawne uzycie /checkpoint set " if arg 1 is "del" or "usun": if arg 2 is set: if {check::%player%::%arg 2%} is set: delete {check::%player%::%arg 2%} send "&6Usunieto %arg 2%" else: send "&6Poprawne uzycie /checkpoint del " if arg 1 is "lista" or "list": if {check::%player%::*} is set: open chest with 6 rows named "&6Lista:" to player set {_slot} to 0 loop {check::%player%::*}: chance of 40%: set player's current inventory's slot {_slot} to light green wool named "&6%loop-index%" with lore "&c%loop-value%" else: set player's current inventory's slot {_slot} to green wool named "&6%loop-index%" with lore "&c%loop-value%" add 1 to {_slot} else: send "&6Nie masz zadnych ustawionych punktow!" if arg 1 is "wyznacz" or "zobacz": if arg 3 is set: if {check::%player%::%arg 2%} is set: if {check::%player%::%arg 3%} is set: set {_1} to {check::%player%::%arg 2%} set {_2} to {check::%player%::%arg 3%} set {_odleglosc} to distance between {_1} and {_2} send "&6Odleglosc miedzy %{_1}% oraz %{_2}%" send "&6 wynosi: &2%{_odleglosc}%" send player title "&6%{_odleglosc}% &6metrow" with subtitle "&2%{_1}% &6[] &2%{_2}%" for 3 seconds else: send "&6Nie ma takiego punktu!" else: send "&6Nie ma takiego punktu!" else: send "&6Poprawne uzycie /checkpoint wyznacz " if arg 1 is "tp" or "teleport": if {check::%player%::*} is set: if arg 2 is not set: open chest with 6 rows named "&6Teleport:" to player set {_slot} to 0 loop {check::%player%::*}: set player's current inventory's slot {_slot} to light green wool named "&6%loop-index%" with lore "&c%loop-value%" add 1 to {_slot} else: send "&6Poprawne uzycie /checkpoint tp " else: send "&6Nie masz zandych punktow!" else: send "" send " &2-----{ &6AxCheckPoint &2}-----" send "&2/checkpoint set &6- Wyznacza punkt" send "&2/checkpoint del &6- Usuwa punkt" send "&2/checkpoint list &6- Pokazuje liste punktow" send "&2/checkpoint wyznacz &6- Wyznacza odleglosc miedzy pkt 1 a pkt 2" send "&2/checkpoint teleport &6- Teleportuje do podanego punktu" on inventory click: if inventory name of player's current inventory is "&6Lista:": cancel event