Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ------------------------------------------------------ #
- #
- #
- # By Alomax :D
- #
- # Minerios em dobro v2
- #
- #
- # ------------------------------------------------------ #
- options:
- #Tempo do comando /2x automatico em minutos
- TempoAutomatico: 15
- Servidor: WarsPvP
- Permissao: warspvp.2xadmin
- # Minerios
- 2xLapisazuli: 6
- 2xRedstone: 6
- 2xDiamond: 2
- 2xFerro: 1
- 2xOuro: 1
- 2xCarvao: 2
- 2xEsmeralda: 1
- variables:
- {2x.evento.iniciado} = false
- command /2x [<text>] [<integer>]:
- executable by: player and console
- aliases: x2
- trigger:
- if player has permission "{@Permissao}":
- if arg 1 is "iniciar":
- if arg 2 is set:
- set {2x.evento.iniciado} to true
- set {2x.tempo.evento} to arg 2
- broadcast "&6&l[{@Servidor}] &eO evento Minerios 2X foi iniciado, Aproveite!"
- wait 3 seconds
- loop {2x.tempo.evento} times:
- if {2x.evento.iniciado} is true:
- broadcast "&6[!] O evento Minerios 2x está acontecendo, Aproveite!"
- wait 60 seconds
- wait 1 second
- set {2x.evento.iniciado} to false
- clear {2x.tempo.evento}
- broadcast "&6O evento Minerios 2X, foi finalizado!"
- if arg 2 is not set:
- send "&6[{@Servidor}] &eEscolha a duração do evento"
- if arg 1 is not set:
- send "&6[{@Servidor}] &eUse /2x iniciar <tempo de duração>!"
- if arg 1 is "cancelar":
- if {2x.evento.iniciado} is true:
- set {2x.evento.iniciado} to false
- clear {2x.tempo.evento}
- broadcast "&6[{@Servidor}] &eO evento Minerios 2X, foi finalizado!"
- else:
- send "&6[{@Servidor}] &eNenhum evento está acontecendo"
- if arg 1 is "automatico":
- set {2x.evento.iniciado} to true
- set {2x.tempo.evento} to {@TempoAutomatico}
- broadcast "&6&l[{@Servidor}] &eO evento Minerios 2X foi iniciado, Aproveite!"
- wait 3 seconds
- loop {2x.tempo.evento} times:
- if {2x.evento.iniciado} is true:
- broadcast "&6[!] O evento Minerios 2x está acontecendo, Aproveite!"
- wait 60 seconds
- wait 1 second
- set {2x.evento.iniciado} to false
- clear {2x.tempo.evento}
- broadcast "&6O evento Minerios 2X, foi finalizado!"
- else:
- send "&6[{@Servidor}] &eVoce não pode fazer isto."
- on mine a lapis lazuli ore:
- if {2x.evento.iniciado} is true:
- drop {@2xLapisazuli} lapis lazuli
- on mine a redstone ore:
- if {2x.evento.iniciado} is true:
- drop {@2xRedstone} redstone
- on mine a diamond ore:
- if {2x.evento.iniciado} is true:
- drop {@2xDiamond} diamond
- on mine a iron ore:
- if {2x.evento.iniciado} is true:
- drop {@2xFerro} iron ore
- on mine a gold ore:
- if {2x.evento.iniciado} is true:
- drop {@2xOuro} gold ore
- on mine a coal ore:
- if {2x.evento.iniciado} is true:
- drop {@2xCarvao} coal
- on mine a emerald ore:
- if {2x.evento.iniciado} is true:
- drop {@2xCarvao} emerald
Advertisement
Add Comment
Please, Sign In to add comment