Jhonattam_

Untitled

Jul 23rd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. variables:
  2. {Sorteio.Iniciado} = false
  3.  
  4. command /sorteio:
  5. permission: admin.sk
  6. permission message: &cVocê não tem permissão para utilizar esse comando.
  7. trigger:
  8. if {Sorteio.Iniciado} is false:
  9. set {Sorteio.Iniciado} to true
  10. set {_ganhador} to random element out of {list::*}
  11. broadcast "&f[&6LS&f] &aO ganhador do sorteio foi &e%{_ganhador}%&6!"
  12. wait 40 tick
  13. send "&f[&6LS&f] &cEste sorteio foi um teste." to {_ganhador}
  14. set {Sorteio.Iniciado} to false
  15. stop
  16.  
  17. command /participar:
  18. permission: sorteio.participar
  19. permission message: &cVocê não tem permissão para utilizar esse comando.
  20. trigger:
  21. if {Sorteio.Iniciado} is true:
  22. add player to {list::*}
  23. if player is in {list::*}:
  24. stop
  25. else:
  26. send "Sorteio não foi iniciado"
Advertisement
Add Comment
Please, Sign In to add comment