Guest User

sChain

a guest
Aug 10th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. options:
  2. prefix: &6(sChain) &e
  3. capacete: chainmail helmet
  4. peitoral: chainmail chestplate
  5. calca: chainmail leggings
  6. bota: chainmail boots
  7. espada: stone sword
  8. quantidademaca: 8
  9. quantidadecap: 2
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. variables:
  46. {chain.entrou.%player%} = false
  47. command /chain [<text>]:
  48. trigger:
  49. if arg 1 is set:
  50. if arg 1 is "entrar" or "join":
  51. if {chain.entrada} is set:
  52. if {chain.entrou.%player%} is false:
  53. loop items in player's inventory:
  54. add 1 to {temitens.chain.%player%}
  55. if {temitens.chain.%player%} is set:
  56. send "{@prefix}Você precisa estar com o inventário vazio para entrar na chain."
  57. delete {temitens.chain.%player%}
  58. stop
  59. remove haste from player
  60. remove invisibility from player
  61. remove strength from player
  62. remove slowness from player
  63. remove jump boost from player
  64. remove speed from player
  65. remove nausea from player
  66. remove regeneration from player
  67. remove resistance from player
  68. clear the player's inventory
  69. add player to {entrouchain::*}
  70. teleport player to {chain.entrada}
  71. clear the player's inventory
  72. send "{@prefix}O jogador %player% entrou na chain." to {entrouchain::*}
  73. set the player's helmet to {@capacete}
  74. set the player's chestplate to {@peitoral}
  75. set the player's leggings to {@calca}
  76. set the player's boots to {@bota}
  77. give {@espada} to player
  78. give {@quantidademaca} golden apple to player
  79. give {@quantidadecap} golden apple:1 to player
  80. set {chain.entrou.%player%} to true
  81. stop
  82. else:
  83. send "{@prefix}Você já está na chain."
  84. stop
  85. else:
  86. send "{@prefix}A entrada da arena chain não está setada, comunique a equipe do servidor sobre isso."
  87. stop
  88. if arg 1 is "sair" or "leave":
  89. if {chain.saida} is set:
  90. if {chain.entrou.%player%} is true:
  91. set {chain.entrou.%player%} to false
  92. send "{@prefix}O jogador %player% saiu da chain." to {entrouchain::*}
  93. remove player from {entrouchain::*}
  94. clear the player's inventory
  95. teleport player to {chain.saida}
  96. stop
  97. else:
  98. send "{@prefix}Você não está na chain."
  99. stop
  100. else:
  101. send "{@prefix}A saida da arena chain não está setada, comunique a equipe do servidor sobre isso."
  102. stop
  103. if arg 1 is "entrada":
  104. if player has permission "chain.staff":
  105. set {chain.entrada} to player's location
  106. send "{@prefix}A entrada da chain foi setada."
  107. stop
  108. else:
  109. send "{@prefix}Você não tem permissão para executar este comando."
  110. stop
  111. if arg 1 is "saida":
  112. if player has permission "chain.staff":
  113. set {chain.saida} to player's location
  114. send "{@prefix}A saida da chain foi setada."
  115. stop
  116. else:
  117. send "{@prefix}Você não tem permissão para executar este comando."
  118. stop
  119. if arg 1 is not "saida" or "entrada" or "join" or "entrar" or "sair" or "leave":
  120. if player has permission "chain.staff":
  121. send " "
  122. send "{@prefix}&f- &eComandos"
  123. send "&6/chain entrar &f-&e Utilizado para entrar na arena."
  124. send "&6/chain sair &f-&e Utilizado para sair da arena."
  125. send " "
  126. send "&6/chain entrada&f -&e Utilizado para marcar a entrada da chain."
  127. send "&6/chain saida&f -&e Utilizado para marcar a saida da chain."
  128. send " "
  129. stop
  130. else:
  131. send " "
  132. send "{@prefix}&f- &eComandos"
  133. send "&6/chain entrar &f-&e Utilizado para entrar na arena."
  134. send "&6/chain sair &f-&e Utilizado para sair da arena."
  135. send " "
  136. stop
  137. else:
  138. if player has permission "chain.staff":
  139. send " "
  140. send "{@prefix}&f- &eComandos"
  141. send "&6/chain entrar &f-&e Utilizado para entrar na arena."
  142. send "&6/chain sair &f-&e Utilizado para sair da arena."
  143. send " "
  144. send "&6/chain entrada&f -&e Utilizado para marcar a entrada da chain."
  145. send "&6/chain saida&f -&e Utilizado para marcar a saida da chain."
  146. send " "
  147. stop
  148. else:
  149. send " "
  150. send "{@prefix}&f- &eComandos"
  151. send "&6/chain entrar &f-&e Utilizado para entrar na arena."
  152. send "&6/chain sair &f-&e Utilizado para sair da arena."
  153. send " "
  154. stop
  155. on death:
  156. if {chain.entrou.%player%} is true:
  157. set {chain.entrou.%player%} to false
  158. send "{@prefix}O jogador %player% morreu." to {entrouchain::*}
  159. remove player from {entrouchain::*}
  160. on quit:
  161. if {chain.entrou.%player%} is true:
  162. set {chain.entrou.%player%} to false
  163. send "{@prefix}O jogador %player% deslogou." to {entrouchain::*}
  164. remove player from {entrouchain::*}
  165. on rightclick holding ender pearl:
  166. if {chain.entrou.%player%} is set:
  167. cancel event
  168. send " "
  169. send "{@prefix} &cNão é permitido uso de ender pearl nessa arena."
  170. send " "
Advertisement
Add Comment
Please, Sign In to add comment