Advertisement
Balerias

Untitled

Jun 5th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. command /_startcountdown:
  2. trigger:
  3. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  4. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  5. if {countdown} is true:
  6. set {countdown} to false
  7. wait 0.1 seconds
  8. set {Countdown.BW} to 61
  9. loop 61 times:
  10. if {state} is "lobby":
  11. if {CountdownStart} is true:
  12. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  13. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  14. wait 1 seconds
  15. remove 1 from {Countdown.BW}
  16. set action bar of all players in world "{@world}" to "&6&lCG &8┃ &eSpielstart in %{Countdown.BW}% Sekunden"
  17. if {Countdown.BW} is 60:
  18. loop all players:
  19. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  20. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&oeiner &7&oMinute" in "{@world}"
  21. if {Countdown.BW} is 30:
  22. loop all players:
  23. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  24. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  25. if {Countdown.BW} is 15:
  26. loop all players:
  27. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  28. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  29. if {Countdown.BW} is 10:
  30. loop all players:
  31. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  32. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  33. if {Countdown.BW} is 5:
  34. loop all players:
  35. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  36. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  37. if {Countdown.BW} is 4:
  38. loop all players:
  39. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  40. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  41. if {Countdown.BW} is 3:
  42. loop all players:
  43. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  44. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  45. if {Countdown.BW} is 2:
  46. loop all players:
  47. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  48. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  49. if {Countdown.BW} is 1:
  50. loop all players:
  51. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  52. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&oeiner &7&oSekunde" in "{@world}"
  53. if {Countdown.BW} is 0:
  54. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  55. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  56. set {state} to "Ingame"
  57. broadcast "{@p}&e&oAlle &oSpieler &owerden &oTeleportiert .." in "{@world}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement