options: time: 5 #czas w sekundach variables: {spawn.tp.%player%} = false {spawn.cord} = 0 command /setspawn: trigger: if player has permission "spawn.set": set {spawn.cord} to location of player send "&7Ustawiles &6nowy &7punk spawnu!" else: send "&cNie masz permisji!" command /spawn: trigger: set {spawn.tp.%player%} to true send "&7Teleportacja na &6spawn &7nastapi za &6{@czas} sekund &7!" wait {@czas} second if {spawn.tp.%player%} is true: teleport player to {spawn.cord} send "&7Przeteleportowano &7na &6spawn&7!" set {spawn.tp.%player%} to false on any move: if {spawn.tp.%player%} is true: send "&7Ruszyles sie, &6anulowano &7teleportacje!" set {spawn.tp.%player%} to false on damage of player: if {spawn.tp.%victim%} is true: send "&7Zostales zaatakowany, &6anulowano &7teleportacje!" to victim set {spawn.tp.%victim%} to false on first join: teleport player to {spawn.cord}