Skip to content

Commit

Permalink
Fixed bad MOTD if the game failed to start.
Browse files Browse the repository at this point in the history
* BUG: the starting MOTD was kept even if the start fails.
  • Loading branch information
AmauryCarrade committed Jan 11, 2016
1 parent 754febf commit 3205469
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,6 @@ public void start(final CommandSender sender, final Boolean slow, Boolean ignore
throw new IllegalStateException("The game is currently running!");
}

p.getMOTDManager().updateMOTDDuringStart();


/** Initialization of the teams **/

Expand Down Expand Up @@ -323,10 +321,16 @@ public void start(final CommandSender sender, final Boolean slow, Boolean ignore

aliveTeamsCount = 0;
alivePlayersCount = 0;

return;
}


/** MOTD (now the game WILL start) **/

p.getMOTDManager().updateMOTDDuringStart();


/** Initialization of the spectator mode **/

if (p.getSpectatorPlusIntegration().isSPIntegrationEnabled())
Expand Down

0 comments on commit 3205469

Please sign in to comment.