TE1TO9_

Untitled

Apr 9th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.69 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.     permission: skript.home
  9.     executable by: players
  10.     trigger:
  11.         set {homes.%player%.location} to location of player
  12.         message "Set your home to <grey>%location of player%<reset>"
  13.  
  14. command /home:
  15.     description: Teleport yourself to your home
  16.     permission: skript.home
  17.     executable by: players
  18.     trigger:
  19.         if {homes.%player%.location} is not set:
  20.             message "You have not set your home yet!"
  21.             stop trigger
  22.         teleport player to {homes.%player%.location}
Add Comment
Please, Sign In to add comment