File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/github/elic0de/hungergames/game Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public void leave(GameUser user) {
8787
8888 public void createTeams (int count ) {
8989 final AtomicInteger colorIndex = new AtomicInteger ();
90- int teamSize = Math .round (12 /count );
90+ int teamSize = Math .round (getPlayers (). size () /count );
9191
9292 // 既存のチームを削除
9393 scoreboard .getTeams ().forEach (Team ::unregister );
@@ -99,7 +99,7 @@ public void createTeams(int count) {
9999 final Team team = scoreboard .registerNewTeam (teamName );
100100
101101 team .setColor (color );
102- team .setOption (Team .Option .NAME_TAG_VISIBILITY , Team .OptionStatus .FOR_OWN_TEAM );
102+ team .setOption (Team .Option .NAME_TAG_VISIBILITY , Team .OptionStatus .FOR_OTHER_TEAMS );
103103 colorIndex .incrementAndGet ();
104104 continue ;
105105 }
@@ -195,7 +195,7 @@ public void wonGame() {
195195 if (getPhase () instanceof InGamePhase ) {
196196 aliveTeams .stream ().findAny ().ifPresent (team -> {
197197 broadcast (new MineDown (String .format ("%sのチームが勝利しました" , team .getName ())));
198- title (String .format ("%s 勝利しました " , team .getName ()), "" );
198+ title (String .format ("%sの勝利 " , team .getName ()), "" );
199199 });
200200 endGame ();
201201 }
You can’t perform that action at this time.
0 commit comments