Guest User

Untitled

a guest
Jul 16th, 2016
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.12 KB | None | 0 0
  1. # #!============[ DTagsVip ]============!# #
  2. # #! | Skript Feito Por: Delavor | !# #
  3. # #!============[ DTagsVip ]============!# #
  4.  
  5. options:
  6. # Lista de tags
  7. ptag1: &7[&4»&7Minerador] &r # Tag que ele irá receber no chat.
  8. ttag1: minerador # Nome da tag que ele ira ter que digitar no /tag
  9. itag1: wooden pickaxe # Item que ficará no menu gui do /tags
  10.  
  11. ptag2: &7[&4»&7Lenhador] &r
  12. ttag2: lenhador
  13. itag2: wooden axe
  14.  
  15. ptag3: &7[&4»&7Pescador] &r
  16. ttag3: pescador
  17. itag3: fishing rod
  18.  
  19. ptag4: &7[&4»&7Herbalista] &r
  20. ttag4: herbalista
  21. itag4: wooden hoe
  22.  
  23. ptag5: &7[&4»&7Escavador] &r
  24. ttag5: escavador
  25. itag5: wooden spade
  26.  
  27. ptag6: &7[&4»&7Assassino] &r
  28. ttag6: assassino
  29. itag6: wooden sword
  30.  
  31. ptag7: &7[&4»&7Empresario] &r
  32. ttag7: empresario
  33. itag7: glowstone dust
  34.  
  35. ptag8: &7[&4»&7Construtor] &r
  36. ttag8: construtor
  37. itag8: oak wood planks
  38.  
  39. ptag9: &d[&4»&dLindinha] &r
  40. ttag9: lindinha
  41. itag9: rose
  42.  
  43. # Tag do Servidor.
  44. servidor: &3[DTagsVip]
  45.  
  46. # Mensagem sem permissão.
  47. sempermissao: &cVocê não é um player VIP.
  48.  
  49. #Mensagem de usou a tag.
  50. usoutag: &aAproveite sua tag
  51.  
  52. # Mensagem de comando incorreto.
  53. comandocorreto: &aUtilize /tag <nome>, para ver as tags use /tags.
  54.  
  55. # Mensagem de tag não existe.
  56. tagnaoexiste: &cEssa tag não existe, veja a lista de tags use /tags.
  57.  
  58. # Titulo do Menu Gui do /tags
  59. titulogui: &5&lTags do Servidor
  60.  
  61. # Permissão do player pra usar uma tag
  62. permissao: DVipTags.use
  63.  
  64.  
  65. command /tag [<text>]:
  66. permission:{@permissao}
  67. permission message: {@servidor} {@sempermissao}
  68. trigger:
  69. if arg 1 is set:
  70. if arg 1 is "{@ttag1}":
  71. set tag of player replacer "groupprefix" to "{@ptag1}"
  72. set tag of player replacer "prefix" to "{@ptag1}"
  73. set {DTagsVip.%player%} to true
  74. message "{@servidor} {@usoutag} {@ptag1}"
  75. stop
  76. else if arg 1 is "{@ttag2}":
  77. set tag of player replacer "groupprefix" to "{@ptag2}"
  78. set tag of player replacer "prefix" to "{@ptag2}"
  79. set {DTagsVip.%player%} to true
  80. message "{@servidor} {@usoutag} {@ptag2}" to player
  81. stop
  82. else if arg 1 is "{@ttag3}":
  83. set tag of player replacer "groupprefix" to "{@ptag3}"
  84. set tag of player replacer "prefix" to "{@ptag3}"
  85. set {DTagsVip.%player%} to true
  86. message "{@servidor} {@usoutag} {@ptag3}" to player
  87. stop
  88. else if arg 1 is "{@ttag4}":
  89. set tag of player replacer "groupprefix" to "{@ptag4}"
  90. set tag of player replacer "prefix" to "{@ptag4}"
  91. set {DTagsVip.%player%} to true
  92. message "{@servidor} {@usoutag} {@ptag4}" to player
  93. stop
  94. else if arg 1 is "{@ttag5}":
  95. set tag of player replacer "groupprefix" to "{@ptag5}"
  96. set tag of player replacer "prefix" to "{@ptag5}"
  97. set {DTagsVip.%player%} to true
  98. message "{@servidor} {@usoutag} {@ptag5}" to player
  99. stop
  100. else if arg 1 is "{@ttag6}":
  101. set tag of player replacer "groupprefix" to "{@ptag6}"
  102. set tag of player replacer "prefix" to "{@ptag6}"
  103. set {DTagsVip.%player%} to true
  104. message "{@servidor} {@usoutag} {@ptag6}" to player
  105. stop
  106. else if arg 1 is "{@ttag7}":
  107. set tag of player replacer "groupprefix" to "{@ptag7}"
  108. set tag of player replacer "prefix" to "{@ptag7}"
  109. set {DTagsVip.%player%} to true
  110. message "{@servidor} {@usoutag} {@ptag7}" to player
  111. stop
  112. else if arg 1 is "{@ttag8}":
  113. set tag of player replacer "groupprefix" to "{@ptag8}"
  114. set tag of player replacer "prefix" to "{@ptag8}"
  115. set {DTagsVip.%player%} to true
  116. message "{@servidor} {@usoutag} {@ptag8}" to player
  117. stop
  118. else if arg 1 is "{@ttag9}":
  119. set tag of player replacer "groupprefix" to "{@ptag9}"
  120. set tag of player replacer "prefix" to "{@ptag9}"
  121. set {DTagsVip.%player%} to true
  122. message "{@servidor} {@usoutag} {@ptag9}" to player
  123. stop
  124. else:
  125. message "{@servidor} {@tagnaoexiste}" to player
  126. else:
  127. message "{@servidor} {@comandocorreto}"
  128.  
  129. command /tags:
  130. trigger:
  131. open chest with 1 row named "{@titulogui}" to player
  132. format slot 0 of player with {@itag1} named "&b/tag {@ttag1}" with lore "{@ptag1}" to close then run [make player execute command "/tag {@ttag1}"]
  133. format slot 1 of player with {@itag2} named "&b/tag {@ttag2}" with lore "{@ptag2}" to close then run [make player execute command "/tag {@ttag2}"]
  134. format slot 2 of player with {@itag3} named "&b/tag {@ttag3}" with lore "{@ptag3}" to close then run [make player execute command "/tag {@ttag3}"]
  135. format slot 3 of player with {@itag4} named "&b/tag {@ttag4}" with lore "{@ptag4}" to close then run [make player execute command "/tag {@ttag4}"]
  136. format slot 4 of player with {@itag5} named "&b/tag {@ttag5}" with lore "{@ptag5}" to close then run [make player execute command "/tag {@ttag5}"]
  137. format slot 5 of player with {@itag6} named "&b/tag {@ttag6}" with lore "{@ptag6}" to close then run [make player execute command "/tag {@ttag6}"]
  138. format slot 6 of player with {@itag7} named "&b/tag {@ttag7}" with lore "{@ptag7}" to close then run [make player execute command "/tag {@ttag7}"]
  139. format slot 7 of player with {@itag8} named "&b/tag {@ttag8}" with lore "{@ptag8}" to close then run [make player execute command "/tag {@ttag8}"]
  140. format slot 8 of player with {@itag9} named "&b/tag {@ttag9}" with lore "{@ptag9}" to close then run [make player execute command "/tag {@ttag9}"]
  141.  
  142. on disconnect:
  143. if {DTagsVip.%player%} is true:
  144. clear tag of player replacer "prefix"
  145. clear tag of player replacer "groupprefix"
  146. delete {DTagsVip.%player%}
  147.  
  148.  
  149.  
  150. on script load:
  151. message "&3+--------------------------+" to console
  152. message " &aLigando Skript" to console
  153. message " &bSkript: &fDTagsVip" to console
  154. message " &bVersão: &f1.0" to console
  155. message " &bAutor: &fDelavor" to console
  156. message "&3+--------------------------+" to console
  157.  
  158. on script unload:
  159. message "&3+--------------------------+" to console
  160. message " &cDesligando Skript" to console
  161. message " &bSkript: &fDTagsVip" to console
  162. message " &bVersão: &f1.0" to console
  163. message " &bAutor: &fDelavor" to console
  164. message "&3+--------------------------+" to console
Advertisement
Add Comment
Please, Sign In to add comment