Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /live [<text>]:
- permission: YT
- permission message: &cVous n'avez pas la permission !
- trigger:
- if arg 1 is not set:
- send "&cUtilisation » /live <lien>"
- if arg 1 is set:
- if {temps.live.%sender%} is false:
- loop all players:
- if {live.live} is false:
- send "&b&l(Lauren) &fVotre live va bientôt commencer !" to player
- wait 5 seconds
- broadcast "&7&m--------------------------------"
- broadcast " &6&l&k||&b&l Annonce &6&l&k||"
- broadcast "&b%sender% &fest en live sur Urania !"
- 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 !""}}]"
- broadcast "&7&m--------------------------------"
- set {broadcast.live} to arg 1
- set {liver.live} to sender
- set {live.live} to true
- set {temps.live.%sender%} to true
- wait 1 hours
- set {temps.live.%sender%} to false
- stop
- if {live.live} is true:
- send "&cUn live est déjà en cours ! Patientez."
- if {temps.live.%sender%} is true:
- send "&cVous devez attendre 1 heure !"
- command /stoplive:
- permission: YT
- trigger:
- if sender is {liver.live}:
- clear {broadcast.live}
- send "&b&l(Lauren) &fLe live a été stoppé !"
- set {live.live} to false
- else:
- send "&cAucun live n'est en cours ou vous n'êtes pas celui qui fait un live !"
- command /info live:
- trigger:
- if {broadcast.live} is not set:
- send ""
- send "&b&l(Lauren) &fLive en cours:"
- send ""
- send " &f&oAucun live."
- send ""
- if {broadcast.live} is not "<none>":
- send ""
- send "&b&l(Lauren) &fLive en cours:"
- send ""
- send " &f&o%{broadcast.live}%"
- if sender = "%{liver.live}%":
- 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 !""}}]"
- send ""
- command /debuglive [<player>]:
- permission: op
- trigger:
- if arg 1 is not set:
- set {temps.live.%sender%} to false
- send "&aOkay"
- if arg 1 is set:
- if arg 1 is a player:
- set {temps.live.%arg 1%} to false
- send "&aVous pouvez désormais utiliser le /live !"
- else:
- send "&cCe joueur n'existe pas !"
- on first join:
- set {temps.live.%player%} to false
- every 3 minutes:
- if {live.live} is true:
- loop all players:
- broadcast "&7&m--------------------------------"
- broadcast " &6&l&k||&b&l Annonce &6&l&k||"
- broadcast "&b%{liver.live}% &fest en live sur Urania !"
- 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 !""}}]"
- broadcast "&7&m--------------------------------"
- if {live.live} is false:
- stop
- every 2 minutes:
- if {live.live} is true:
- send "&7&oPss... Si tu n'est plus en live fais /stoplive !" to {liver.live}
- else:
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement