Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- EndOfEp: &e[&6RRName&e] &lEnd of Episode
- B: &e--&6--&e--&6--&e--&6--&e--&6--&e--&6--&e--&6--&e--
- command /rr <text> [<integer>]:
- usage: /rr <start/stop/settime> <minutes>
- trigger:
- if arg-1 is "start":
- set {rrRunning} to true
- set {rrTimer} to 0
- set {currentEpisode} to 1
- loop all players:
- command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
- broadcast "{@B}"
- broadcast "&e&l The game has started!"
- broadcast " &e&l Good luck!"
- broadcast "{@B}"
- else if arg-1 is "stop":
- delete {rrRunning}
- delete {rrTimer}
- command /endepisode:
- permission: skript.op
- trigger:
- broadcast "{@B}"
- broadcast "{@EndOfEp} %{currentEpisode}%! "
- broadcast "&e&o %{currentEpisode} * 20% minutes have elapsed."
- broadcast "{@B}"
- loop all players:
- execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
- set {currentEpisode} to {currentEpisode} + 1
- every 5 seconds:
- {rrRunning} is true
- add 5 to {rrTimer}
- set {_nummoduled} to {rrTimer} / 60
- while {_nummoduled} is greater than 0:
- set {_nummoduled} to {_nummoduled} - 20
- if {_nummoduled} is 0:
- command "/endepisode"
- command /time:
- trigger:
- send "&6--------------------------------"
- send "&e Time Left This Episode: &a%((20 * {currentEpisode}) -({rrTimer} / 60))% Min."
- send "&6--------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement