Advertisement
taktie0304

Untitled

Jul 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. on rightclick on wood button:
  2. if {start} is false:
  3. set {start} to true
  4. loop all players:
  5. send loop-player title "&a5" with subtitle "&fスタートまで" for 1 seconds
  6. wait 1 second
  7. loop all players:
  8. send loop-player title "&a4" with subtitle "&fスタートまで" for 1 seconds
  9. wait 1 second
  10. loop all players:
  11. send loop-player title "&a3" with subtitle "&fスタートまで" for 1 seconds
  12. wait 1 second
  13. loop all players:
  14. send loop-player title "&a2" with subtitle "&fスタートまで" for 1 seconds
  15. wait 1 second
  16. loop all players:
  17. send loop-player title "&a1" with subtitle "&fスタートまで" for 1 seconds
  18. wait 1 second
  19. set {gameplayer} to 0
  20. loop all players:
  21. if {join.%loop-player%} is true:
  22. add 1 to {gameplayer}
  23. if {gameplayer} <= 1:
  24. broadcast "&c参加人数が足りませんでした"
  25. wait 1 second
  26. set {start} to false
  27. else:
  28. command "/scoreboard teams empty red"
  29. command "/scoreboard teams empty blue"
  30. loop all players:
  31. if {join.%loop-player%} is true:
  32. if {a} == 0:
  33. command "/scoreboard teams join red %loop-player%"
  34. set {a} to 1
  35. else:
  36. command "/scoreboard teams join blue %loop-player%"
  37. set {a} to 0
  38. set {start} to false
  39. else:
  40. send "&c現在試合中です" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement