Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #--------------------------------
  2. command /delhome [<offline player>] [<text>]:
  3. trigger:
  4. set {_pl} to arg 1
  5. set {_home} to arg 2
  6. homeDel({_pl}, player, {_home})
  7. #--------------------------------
  8. command /sethome [<text>]:
  9. trigger:
  10. if arg 1 is not set:
  11. send "&e&l[&d&l✖&e&l] &r&7Include a name for your home: /sethome <name>"
  12. stop
  13. if arg 1 = "1", "2", "3", "4", "5", "6", "7", "8", "9" or "10":
  14. send "&e&l[&d&l✖&e&l] &r&7Home cannot be a number"
  15. stop
  16. if {homes-count.%arg-1%} is not set:
  17. set {homes-count.%arg-1%} to 0
  18. make player execute command "essentials:sethome %arg-1%"
  19. add 1 to {homes-count.%player%}
  20. set {home.%player%::%{homes-count.%player%}%} to arg 1
  21. #--------------------------------
  22. command /homesets <offlineplayer>:
  23. trigger:
  24. if player has permission "staff", "srstaff" or "owner":
  25. set {_pl} to arg 1
  26. listHomes({_pl}, player, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement