command /ustawspawn2: trigger: set {Spawn} to location of player send "&7Spawn zostal &austawiony&7!" on join: teleport player to {Spawn} command /spawn: trigger: if player has permission "spawn.admin": teleport player to {Spawn} if player has permission "spawn.gracz": set {_spawn} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" send "&7Za 5 sekund nastapi teleportacja na spawn" set {spawn.tp} to true wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_spawn}: if {spawn.tp} is true: wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_spawn}: if {spawn.tp} is true: wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_spawn}: if {spawn.tp} is true: wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_spawn}: if {spawn.tp} is true: wait 1 second send "&aPomyslnie &7przeteleportowano na spawn!" teleport player to {Spawn} else: send "&cRuszyles sie! Teleportacja zostala anulowana" set {spawn.tp} to false else: send "&cRuszyles sie! Teleportacja zostala anulowana" set {spawn.tp} to false else: send "&cRuszyles sie! Teleportacja zostala anulowana" set {spawn.tp} to false else: send "&cRuszyles sie! Teleportacja zostala anulowana" set {spawn.tp} to false