command /setspawn [<text>]:
trigger:
if player has permission "setspawn.permisje":
set {location.spawn} to location of player
send "&aLokalizacja spawnu zostala wyznaczona przez &c%player%" to player
command /spawn [<text>]:
trigger:
if {location.spawn} is set:
set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%"
if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}:
teleport player to {location.spawn}
send "&8[&a&l✓&8]&7» &fPomysle przeniosles sie na &cSpawn&f!"
Troche dłuższe ale działa zawsze