Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /setspawn:
- permission: setspawn
- trigger:
- set {spawn} to location of player
- send "Spawn zostal ustawiony!"
- command /spawn:
- trigger:
- if {spawn} is set:
- set {_pos} to location of player
- add 5 to {time.%player%}
- loop 5 times:
- wait 1 real second
- if {_pos} isn't location of player:
- send "Poruszyles sie, teleportacja anulowana!"
- stop trigger
- remove 1 from {time.%player%}
- if {time.%player%} is 0:
- teleport player to {spawn}
- send "Przeteleportowano na spawn!"
- on first join:
- if {spawn} is set:
- teleport player to {spawn}
- on respawn:
- if {spawn} is set:
- teleport player to {spawn}
Advertisement
Add Comment
Please, Sign In to add comment