Guest User

Skript Destination

a guest
Jul 22nd, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. #Alors tout d'abord je me présente, je suis un codeur qui avait envie de vous donner un skript très utile! :)
  2. #Cela va vous permettre de sauvegarder des destinations et vous téléporter dedans avec simplicité!
  3. #Très facile à modifier selon son besoin.
  4. #Utilisation:
  5. #/gt set [name]
  6. #/gt remove [destination]
  7. #/gt to [destination] [player]
  8. #/gt list
  9.  
  10. command /gt [<text>] [<text>] [<player>]:
  11. trigger:
  12. if arg 1 is not set:
  13. message "&cPlease enter a value!"
  14. else:
  15. if arg 1 is "list":
  16. message "&c- set"
  17. message "&c- remove"
  18. message "&c- to"
  19. message "&c- list"
  20. stop trigger
  21. if arg 1 is "set":
  22. if arg 2 is set:
  23. set {gt.set.%arg 2%} to player's location
  24. message "&aYou have succesfuly set your location to &7%arg 2%&a!"
  25. stop trigger
  26. else:
  27. if arg 1 is "to":
  28. if {gt.set.%arg 2%} is set:
  29. clear player's inventory
  30. teleport player to {gt.set.%arg 2%}
  31. message "&aYou have succesfuly been teleported to &7%arg 2%&a!"
  32. stop trigger
  33. else:
  34. message "&cThis destination doesn't exist!"
  35. stop trigger
  36. else:
  37. if arg 1 is "remove":
  38. if arg 2 is set:
  39. if {gt.set.%arg 2%} is set:
  40. delete {gt.set.%arg 2%}
  41. message "&cYou have succesfuly deleted the destination &7%arg 2%&c!"
  42. stop trigger
  43. else:
  44. message "&cYou can't remove this destination because it doesn't exist!"
  45. stop trigger
  46. else:
  47. message "&cPlease enter a destination to remove!"
  48. stop trigger
  49. else:
  50. message "&cThis value doesn't exist!"
  51. stop trigger
Advertisement
Add Comment
Please, Sign In to add comment