Advertisement
7mm

Untitled

7mm
Oct 23rd, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /game <text> [<text>]:
  2. permission: atmark.command.game
  3. trigger:
  4. if arg 1 is "standby":
  5. set {system.status.stop} to false
  6. broadcast "&3&lSystem &7>> &a参加者を募集中です"
  7. command "execute @a ~ ~ ~ playsound block.note.pling master @s"
  8. while true:
  9. if {system.status.stop} is true:
  10. broadcast "&3&lSystem &7>> &cゲームの開始がキャンセルされました"
  11. exit loop
  12. set {_players} to 0
  13. loop all players:
  14. block below loop-player is emerald block
  15. add 1 to {_players}
  16. if {_players} > 3:
  17. command "/game countdown 30"
  18. exit loop
  19. wait a second
  20. if arg 1 is "countdown":
  21. set {system.status.stop} to false
  22. broadcast "&3&lSystem &7>> &eカウントダウンを開始します"
  23. command "execute @a ~ ~ ~ playsound block.note.pling master @s"
  24. arg 2 is set
  25. set {_count} to arg 2 parsed as integer
  26. loop {_count} times:
  27. if {system.status.stop} is true:
  28. broadcast "&3&lSystem &7>> &cゲームの開始がキャンセルされました"
  29. exit loop
  30. loop all players:
  31. block below loop-player is emerald block
  32. command "/game countdown 30"
  33. set {system.status.join::%{system.status.plamount}%} to loop-player
  34. add 1 to {system.status.plamount}
  35. if arg 1 is "stop":
  36. set {launch.system.stop} to true
  37. set {launch.system.plamount} to 0
  38. clear {launch.system.join::*}
  39.  
  40. command /gmenu [<text>]:
  41. trigger:
  42. true is true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement