Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sorteio:
- permission: admin.sk
- permission message: &cVocê não tem permissão para utilizar esse comando.
- trigger:
- loop all players:
- if loop-player has permission "sorteio.participar":
- set {_jogadores::*} to loop-player
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c1 minuto&f."
- wait 600 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c30 segundos&f."
- wait 400 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c10 segundos&f."
- wait 40 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c9 segundos&f."
- wait 40 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c8 segundos&f."
- wait 40 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c7 segundos&f."
- wait 40 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c6 segundos&f."
- wait 40 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c5 segundos&f."
- wait 40 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c4 segundos&f."
- wait 40 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c3 segundos&f."
- wait 40 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c2 segundos&f."
- wait 40 tick
- broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c1 segundo&f."
- wait 40 tick
- set {_ganhador} to random element out of {_jogadores::*}
- broadcast "&f[&6LS&f] &aO ganhador do sorteio foi &e%{_ganhador}%&6!"
- wait 40 tick
- send "&f[&6LS&f] &cEste sorteio foi um teste." to {_ganhador}
- stop
- else:
- send "&f[&6LS&f] &cNão foi possivel iniciar o sorteio&6!"
- stop
- variables:
- {Sorteio.Iniciado} = false
- command /sorteio:
- permission: admin.sk
- permission message: &cVocê não tem permissão para utilizar esse comando.
- trigger:
- if {Sorteio.Iniciado} is false:
- set {Sorteio.Iniciado} to true
- set {_ganhador} to random element out of {list::*}
- broadcast "&f[&6LS&f] &aO ganhador do sorteio foi &e%{_ganhador}%&6!"
- wait 40 tick
- send "&f[&6LS&f] &cEste sorteio foi um teste." to {_ganhador}
- set {Sorteio.Iniciado} to false
- stop
- command /participar:
- permission: sorteio.participar
- permission message: &cVocê não tem permissão para utilizar esse comando.
- trigger:
- if {Sorteio.Iniciado} is true:
- add player to {list::*}
- if player is in {list::*}:
- stop
- else:
- send "Sorteio não foi iniciado"
Advertisement
Add Comment
Please, Sign In to add comment