on command "spawn": set {_loc} to "%floor(x-coordinate of player)%, %floor(y-coordinate of player)%, %floor(z-coordinate of player)%" set {_timer} to 8 while {_timer} > 0: if "%floor(x-coordinate of player)%, %floor(y-coordinate of player)%, %floor(z-coordinate of player)%" isn't {_loc}: stop set action bar of player to "&6Teleportacja nastapi za &e%{_timer}%s&6!" wait 1 second remove 1 from {_timer} send "&7Zostales &9przeteleportowany&7!"