if (this.isPlayerAdded(playerToSubstitute)) {
if (!this.isPlayerAdded(newPlayer)) {
this.removePlayer(playerToSubstitute);
this.addPlayer(newPlayer);
} else {
throw new GameError(String.format("Player %s is already added in %s",
IrcMessageTextModifier.makeBold(newPlayer.getNick()),
IrcMessageTextModifier.makeBold(this.getGameType())));
}
}
}