Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. command /live [<text>]:
  2. permission: YT
  3. permission message: &cVous n'avez pas la permission !
  4. trigger:
  5. if arg 1 is not set:
  6. send "&cUtilisation » /live <lien>"
  7. if arg 1 is set:
  8. if {temps.live.%sender%} is false:
  9. loop all players:
  10. if {live.live} is false:
  11. send "&b&l(Lauren) &fVotre live va bientôt commencer !" to player
  12. wait 5 seconds
  13. broadcast "&7&m--------------------------------"
  14. broadcast " &6&l&k||&b&l Annonce &6&l&k||"
  15. broadcast "&b%sender% &fest en live sur Urania !"
  16. execute console command "/tellraw @a ["""",{""text"":""&fPour ne pas rater ça &b» ""},{""text"":""&a(Clique ici)"",""clickEvent"":{""action"":""run_command"",""value"":""/info live""},""hoverEvent"":{""action"":""show_text"",""value"":""&fClique pour voir le live !""}}]"
  17. broadcast "&7&m--------------------------------"
  18. set {broadcast.live} to arg 1
  19. set {liver.live} to sender
  20. set {live.live} to true
  21. set {temps.live.%sender%} to true
  22. wait 1 hours
  23. set {temps.live.%sender%} to false
  24. stop
  25. if {live.live} is true:
  26. send "&cUn live est déjà en cours ! Patientez."
  27. if {temps.live.%sender%} is true:
  28. send "&cVous devez attendre 1 heure !"
  29.  
  30. command /stoplive:
  31. permission: YT
  32. trigger:
  33. if sender is {liver.live}:
  34. clear {broadcast.live}
  35. send "&b&l(Lauren) &fLe live a été stoppé !"
  36. set {live.live} to false
  37. else:
  38. send "&cAucun live n'est en cours ou vous n'êtes pas celui qui fait un live !"
  39.  
  40. command /info live:
  41. trigger:
  42. if {broadcast.live} is not set:
  43. send ""
  44. send "&b&l(Lauren) &fLive en cours:"
  45. send ""
  46. send " &f&oAucun live."
  47. send ""
  48. if {broadcast.live} is not "<none>":
  49. send ""
  50. send "&b&l(Lauren) &fLive en cours:"
  51. send ""
  52. send " &f&o%{broadcast.live}%"
  53. if sender = "%{liver.live}%":
  54. execute console command "/tellraw %{liver.live}% ["""",{""text"":"" ""},{""text"":""&c&l(STOP)"",""clickEvent"":{""action"":""run_command"",""value"":""/stoplive""},""hoverEvent"":{""action"":""show_text"",""value"":""&fClique pour stopper le live !""}}]"
  55. send ""
  56.  
  57. command /debuglive [<player>]:
  58. permission: op
  59. trigger:
  60. if arg 1 is not set:
  61. set {temps.live.%sender%} to false
  62. send "&aOkay"
  63. if arg 1 is set:
  64. if arg 1 is a player:
  65. set {temps.live.%arg 1%} to false
  66. send "&aVous pouvez désormais utiliser le /live !"
  67. else:
  68. send "&cCe joueur n'existe pas !"
  69.  
  70. on first join:
  71. set {temps.live.%player%} to false
  72.  
  73. every 3 minutes:
  74. if {live.live} is true:
  75. loop all players:
  76. broadcast "&7&m--------------------------------"
  77. broadcast " &6&l&k||&b&l Annonce &6&l&k||"
  78. broadcast "&b%{liver.live}% &fest en live sur Urania !"
  79. execute console command "/tellraw @a ["""",{""text"":""&fPour ne pas rater ça &b» ""},{""text"":""&a(Clique ici)"",""clickEvent"":{""action"":""run_command"",""value"":""/info live""},""hoverEvent"":{""action"":""show_text"",""value"":""&fClique pour voir le live !""}}]"
  80. broadcast "&7&m--------------------------------"
  81. if {live.live} is false:
  82. stop
  83.  
  84. every 2 minutes:
  85. if {live.live} is true:
  86. send "&7&oPss... Si tu n'est plus en live fais /stoplive !" to {liver.live}
  87. else:
  88. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement