use of com.faforever.server.rating.RatingType in project faf-java-server by FAForever.
the class GameService method updateRatingsIfValid.
private void updateRatingsIfValid(Game game) {
if (game.getValidity() != Validity.VALID && !game.isRatingEnforced()) {
return;
}
RatingType ratingType = modService.isLadder1v1(game.getFeaturedMod()) ? RatingType.LADDER_1V1 : RatingType.GLOBAL;
ratingService.updateRatings(game.getPlayerStats().values(), NO_TEAM_ID, ratingType);
}
Aggregations