Jhonattam_

Untitled

Jul 23rd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. command /sorteio:
  2. permission: admin.sk
  3. permission message: &cVocê não tem permissão para utilizar esse comando.
  4. trigger:
  5. loop all players:
  6. if loop-player has permission "sorteio.participar":
  7. set {_jogadores::*} to loop-player
  8. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c1 minuto&f."
  9. wait 600 tick
  10. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c30 segundos&f."
  11. wait 400 tick
  12. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c10 segundos&f."
  13. wait 40 tick
  14. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c9 segundos&f."
  15. wait 40 tick
  16. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c8 segundos&f."
  17. wait 40 tick
  18. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c7 segundos&f."
  19. wait 40 tick
  20. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c6 segundos&f."
  21. wait 40 tick
  22. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c5 segundos&f."
  23. wait 40 tick
  24. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c4 segundos&f."
  25. wait 40 tick
  26. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c3 segundos&f."
  27. wait 40 tick
  28. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c2 segundos&f."
  29. wait 40 tick
  30. broadcast "&f[&6LS&f] O &bsorteio &fcomeça em &c1 segundo&f."
  31. wait 40 tick
  32. set {_ganhador} to random element out of {_jogadores::*}
  33. broadcast "&f[&6LS&f] &aO ganhador do sorteio foi &e%{_ganhador}%&6!"
  34. wait 40 tick
  35. send "&f[&6LS&f] &cEste sorteio foi um teste." to {_ganhador}
  36. stop
  37. else:
  38. send "&f[&6LS&f] &cNão foi possivel iniciar o sorteio&6!"
  39. stop
  40.  
  41.  
  42.  
  43.  
  44. variables:
  45. {Sorteio.Iniciado} = false
  46.  
  47. command /sorteio:
  48. permission: admin.sk
  49. permission message: &cVocê não tem permissão para utilizar esse comando.
  50. trigger:
  51. if {Sorteio.Iniciado} is false:
  52. set {Sorteio.Iniciado} to true
  53. set {_ganhador} to random element out of {list::*}
  54. broadcast "&f[&6LS&f] &aO ganhador do sorteio foi &e%{_ganhador}%&6!"
  55. wait 40 tick
  56. send "&f[&6LS&f] &cEste sorteio foi um teste." to {_ganhador}
  57. set {Sorteio.Iniciado} to false
  58. stop
  59.  
  60. command /participar:
  61. permission: sorteio.participar
  62. permission message: &cVocê não tem permissão para utilizar esse comando.
  63. trigger:
  64. if {Sorteio.Iniciado} is true:
  65. add player to {list::*}
  66. if player is in {list::*}:
  67. stop
  68. else:
  69. send "Sorteio não foi iniciado"
Advertisement
Add Comment
Please, Sign In to add comment