Guest User

Rspawn1

a guest
Aug 17th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. # ▒██████ ▒██████████ #
  2. # ▒██ ▒██ ▒████ ▒███████ ▒████ ▒███████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒████████ ▒████████ #
  3. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▀▀ #
  4. # ▒██ ▒██ ▒██ ▒██ ▒███████ ▒██ ▒██ ▒███████ ▒██ ▒██████████ ▒████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
  5. # ▒██████ ▒████████ ▒██ ▒████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒██ ▒██ #
  6. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ #
  7. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒███████ ▒███████ ▒██████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
  8.  
  9.  
  10. options:
  11. Permissão_Spawn: API.SPAWN
  12. Permissão_Vip: API.VIP.SPAWN
  13.  
  14.  
  15.  
  16. command /spawn [<text>]:
  17. trigger:
  18. if arg 1 is not set:
  19. if player has permission "{@Permissão_Vip}":
  20. if {spawn} is set:
  21. teleport player to {spawn}
  22. send ""
  23. send "&aTeleportado para o &fspawn&a com sucesso."
  24. send ""
  25. else:
  26. send ""
  27. send "&cO &fspawn &cainda não foi setado."
  28. send ""
  29. else:
  30. if {spawn} is set:
  31. send "&aAguarde &f3 &asegundos."
  32. wait 3 second
  33. send ""
  34. send "&aTeleportado para o &fspawn&a com sucesso."
  35. send ""
  36. teleport player to {spawn}
  37. else:
  38. send ""
  39. send "&cO &fspawn &cainda não foi setado."
  40. send ""
  41. if player has permission "{@Permissão_Spawn}":
  42. if arg 1 is "setar":
  43. if {spawn} is not set:
  44. set {spawn} to location of player
  45. send ""
  46. send "&7A localização do &4SPAWN &7foi setada com sucesso."
  47. send ""
  48. wait 1 second
  49. teleport player to {spawn}
  50. else:
  51. send ""
  52. send "&7A localização do &4SPAWN &7já foi setada."
  53. send ""
  54. wait 1 second
  55. teleport player to {spawn}
  56. if arg 1 is "deletar":
  57. if {spawn} is set:
  58. clear {spawn}
  59. send ""
  60. send "&7A localização do &4SPAWN &7foi deletada com sucesso."
  61. send ""
  62. else:
  63. send ""
  64. send "&7A localização do &4SPAWN &7já foi deletada."
  65. send ""
  66. if arg 1 is "administrador":
  67. open chest with 3 rows named "&8SPAWN" to player
  68. wait 2 ticks
  69. format slot 11 of player with light green wool named "&aSetar" with lore "||&7Clique para setar a localização do spawn.||||&7O spawn será setado em sua localização.||&f" to close then run [make player execute command "spawn setar"]
  70. format slot 13 of player with red wool named "&4Deletar" with lore "||&7Clique para deletar a localização do spawn.||&f" to close then run [make player execute command "spawn deletar"]
  71. format slot 15 of player with lever named "&eTeleportar" with lore "||&7Clique para se teletransportar para o spawn.||&f" to close then run [make player execute command "spawn"]
  72. if arg 1 is not "administrador" or "setar" or "deletar":
  73. send "&cUse /spawn administrador"
  74. else:
  75. send "&cSem permissão."
Advertisement
Add Comment
Please, Sign In to add comment