Alomax_

[Evento] - Minerios em dobro

Jul 17th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. # ------------------------------------------------------ #
  2. #
  3. #
  4. # By Alomax :D
  5. #
  6. # Minerios em dobro v2
  7. #
  8. #
  9. # ------------------------------------------------------ #
  10.  
  11. options:
  12. #Tempo do comando /2x automatico em minutos
  13. TempoAutomatico: 15
  14.  
  15. Servidor: WarsPvP
  16. Permissao: warspvp.2xadmin
  17.  
  18. # Minerios
  19. 2xLapisazuli: 6
  20. 2xRedstone: 6
  21. 2xDiamond: 2
  22. 2xFerro: 1
  23. 2xOuro: 1
  24. 2xCarvao: 2
  25. 2xEsmeralda: 1
  26.  
  27. variables:
  28. {2x.evento.iniciado} = false
  29.  
  30. command /2x [<text>] [<integer>]:
  31. executable by: player and console
  32. aliases: x2
  33. trigger:
  34. if player has permission "{@Permissao}":
  35. if arg 1 is "iniciar":
  36. if arg 2 is set:
  37. set {2x.evento.iniciado} to true
  38. set {2x.tempo.evento} to arg 2
  39. broadcast "&6&l[{@Servidor}] &eO evento Minerios 2X foi iniciado, Aproveite!"
  40. wait 3 seconds
  41. loop {2x.tempo.evento} times:
  42. if {2x.evento.iniciado} is true:
  43. broadcast "&6[!] O evento Minerios 2x está acontecendo, Aproveite!"
  44. wait 60 seconds
  45. wait 1 second
  46. set {2x.evento.iniciado} to false
  47. clear {2x.tempo.evento}
  48. broadcast "&6O evento Minerios 2X, foi finalizado!"
  49. if arg 2 is not set:
  50. send "&6[{@Servidor}] &eEscolha a duração do evento"
  51. if arg 1 is not set:
  52. send "&6[{@Servidor}] &eUse /2x iniciar <tempo de duração>!"
  53. if arg 1 is "cancelar":
  54. if {2x.evento.iniciado} is true:
  55. set {2x.evento.iniciado} to false
  56. clear {2x.tempo.evento}
  57. broadcast "&6[{@Servidor}] &eO evento Minerios 2X, foi finalizado!"
  58. else:
  59. send "&6[{@Servidor}] &eNenhum evento está acontecendo"
  60. if arg 1 is "automatico":
  61. set {2x.evento.iniciado} to true
  62. set {2x.tempo.evento} to {@TempoAutomatico}
  63. broadcast "&6&l[{@Servidor}] &eO evento Minerios 2X foi iniciado, Aproveite!"
  64. wait 3 seconds
  65. loop {2x.tempo.evento} times:
  66. if {2x.evento.iniciado} is true:
  67. broadcast "&6[!] O evento Minerios 2x está acontecendo, Aproveite!"
  68. wait 60 seconds
  69. wait 1 second
  70. set {2x.evento.iniciado} to false
  71. clear {2x.tempo.evento}
  72. broadcast "&6O evento Minerios 2X, foi finalizado!"
  73. else:
  74. send "&6[{@Servidor}] &eVoce não pode fazer isto."
  75.  
  76. on mine a lapis lazuli ore:
  77. if {2x.evento.iniciado} is true:
  78. drop {@2xLapisazuli} lapis lazuli
  79.  
  80. on mine a redstone ore:
  81. if {2x.evento.iniciado} is true:
  82. drop {@2xRedstone} redstone
  83.  
  84. on mine a diamond ore:
  85. if {2x.evento.iniciado} is true:
  86. drop {@2xDiamond} diamond
  87.  
  88. on mine a iron ore:
  89. if {2x.evento.iniciado} is true:
  90. drop {@2xFerro} iron ore
  91.  
  92. on mine a gold ore:
  93. if {2x.evento.iniciado} is true:
  94. drop {@2xOuro} gold ore
  95.  
  96. on mine a coal ore:
  97. if {2x.evento.iniciado} is true:
  98. drop {@2xCarvao} coal
  99.  
  100. on mine a emerald ore:
  101. if {2x.evento.iniciado} is true:
  102. drop {@2xCarvao} emerald
Advertisement
Add Comment
Please, Sign In to add comment