Advertisement
twogz

Untitled

Jul 26th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. on any movement:
  2. if y coordinate of location of player <= 0:
  3. cancel event
  4. teleport player to {spawn}
  5.  
  6. command /setspawn:
  7. trigger:
  8. if player does not have permission "admin.setspawn":
  9. message "&cYou must be admin or higher to use this command."
  10.  
  11. else:
  12. set {spawn} to location of player
  13. message "&aThe spawn has been set to your current location."
  14.  
  15. command /spawn:
  16. trigger:
  17. if {cooldown.%player%} = 0:
  18. teleport player to {spawn}
  19. stop
  20.  
  21. else:
  22. message "&cYou must wait &e%{cooldown.%player%}%s &cto use this again."
  23. stop
  24.  
  25. every real second:
  26. if {cooldown.%player%} > 3:
  27. remove 1 from {cooldown.%player%}
  28. if {cooldown.%player%} = 0:
  29. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement