Advertisement
taiyaki23

Untitled

Jun 29th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. command /yuki <text>:
  2. permission: sk.op
  3. trigger:
  4. if arg-1 is "team":
  5. set {_yukipl} to 0
  6. set {_lnum} to 0
  7. delete {teamred::*}
  8. delete {teamblue::*}
  9. delete {teamwhite::*}
  10. loop all players:
  11. if {yukisannka.%loop-player%} is 1:
  12. add loop-player to {teamwhite::*}
  13. add 1 to {_yukipl}
  14. loop {_yukipl} times:
  15. add 1 to {_yukipl2}
  16. set {_random} to a random player out of {teamwhite::*}
  17. remove {_random} from {teamwhite::*}
  18. if {_yukipl2} is 1:
  19. add {_random} to {teamred::*}
  20. set {team.%{_random}%} to red
  21. execute console command "/scoreboard teams join red %{_random}%"
  22. else if {_yukipl2} is 2:
  23. add {_random} to {teamblue::*}
  24. set {team.%{_random}%} to blue
  25. execute console command "/scoreboard teams join blue %{_random}%"
  26. remove 2 from {_yukipl2}
  27. message "<red>%{teamred::*}%<white>,<blue>%{teamblue::*}%" to player
  28. if arg-1 is "start":
  29. set {_shiai} to "start"
  30. set {_shiaizikann} to 300
  31. loop 300 times:
  32. set {_shiaizikann} to {_shiaizikann} - 1
  33. if {_shiai} is "stop":
  34. stop loop
  35.  
  36.  
  37. command join:
  38. trigger:
  39. message "&aゲーム参加しました" to player
  40. set {yukisannka.%player%} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement