Witam, tutaj daje kod do tego skrypta.
Oto kod:
command /setspawn:
trigger:
if player has permission "xfun.setspawn":
set {spawn} to location of player
send "&8» &7Ustawiles punkt spawnu &epomyslnie!"
else:
send "&8» &7Brak dostepu do: &e(xfun.setspawn)"
command /spawn:
trigger:
if player has permission "xfun.spawn":
set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%"
send "&8[ &a&nSPAWN&8 &8] &8» &6&lTeleportacja &7 &7Nastapi za 5 sekund!"
wait 5 real seconds
if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}:
teleport player to {spawn}
send "&8» &7Teleportacja &epomyslna!"
else:
send "&8[ &a&nSPAWN &8] &8» &6&lRuszyles sie &7teleportacja przerwana!"
Jeżeli ci zadziała daj +