kaizyukun

Untitled

Mar 20th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #
  2. # A simple home script which allows players with the permission 'skript.home' to
  3. # define a home location with /sethome and teleport to that location whenever they want to with /home.
  4. #
  5.  
  6. command /sethome:
  7. description: Set your home
  8. executable by: players
  9. trigger:
  10. set {homes.%player%.location} to location of player
  11. message "Set your home to <grey>%location of player%<reset>"
  12.  
  13. command /home:
  14. description: Teleport yourself to your home
  15. executable by: players
  16. trigger:
  17. if {homes.%player%.location} is not set:
  18. message "You have not set your home yet!"
  19. stop trigger
  20. teleport player to {homes.%player%.location}
Add Comment
Please, Sign In to add comment