TheGeneX

sChain

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