Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- if {list::*} have players:
- broadcast "&f[&6LS&f] &aSorteio iniciando em 5 minutos"
- wait 3000 tick
- 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
- else:
- set {Sorteio.Iniciado} to false
- send "Não há players"
- stop
- command /participar:
- permission: sorteio.participar
- permission message: &cVocê não tem permissão para utilizar esse comando.
- trigger:
- if {Sorteio.Iniciado} is true:
- if "%{list::*}%" does not contain "%player%":
- add player to {list::*}
- send "&avocÊ está participando"
- else:
- send "você ja está participando"
- stop
- else:
- send "Sorteio não foi iniciado"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement