Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /yuki <text> <text>:
- permission: sk.op
- trigger:
- if arg-1 is team:
- set {_yukipl} to 0
- set {_lnum} to 0
- delete {teamred::*}
- delete {teamblue::*}
- delete {teamwhite::*}
- execute console command "/scoreboard teams empty red"
- execute console command "/scoreboard teams empty blue"
- execute console command "/scoreboard teams join red Red"
- execute console command "/scoreboard teams join blue Blue"
- loop all players:
- if {yukisannka.%loop-player%} is 1:
- add loop-player to {teamwhite::*}
- add 1 to {_yukipl}
- loop {_yukipl} times:
- add 1 to {_yukipl2}
- set {_random} to a random player out of {teamwhite::*}
- remove {_random} from {teamwhite::*}
- if {_yukipl2} is 1:
- add {_random} to {teamred::*}
- set {team.%{_random}%} to red
- execute console command "/scoreboard teams join red %{_random}%"
- else if {_yukipl2} is 2:
- add {_random} to {teamblue::*}
- set {team.%{_random}%} to blue
- execute console command "/scoreboard teams join blue %{_random}%"
- remove 2 from {_yukipl2}
- message "<red>%{teamred::*}%<white>,<blue>%{teamblue::*}%" to player
- command join:
- trigger:
- message "&aゲーム参加しました" to player
- set {yukisannka.%player%} to 1
Advertisement
Add Comment
Please, Sign In to add comment