on command "spawn": set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" set {_timer} to 8 while {_timer} > 0: if "%x-coordinate of player%, %y-coordinate of player%, %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!"