Archiviert
1
0
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-15 09:53:24 +01:00
Ursprung 265dfd4904
Commit ca4a0c2022

Datei anzeigen

@ -139,7 +139,7 @@ public class UserElo {
} }
public static String getEmblemProgression(String gameMode, int userId) { public static String getEmblemProgression(String gameMode, int userId) {
if (UserElo.getFightsOfSeason(user.getId(), mode.getSchemType()) < 10) return "§8✧ ✦ ✶ ✷ ✸ ✹ ❂"; if (UserElo.getFightsOfSeason(userId, gameMode) < 10) return "§8✧ ✦ ✶ ✷ ✸ ✹ ❂";
Optional<Integer> currentElo = UserElo.getElo(userId, gameMode); Optional<Integer> currentElo = UserElo.getElo(userId, gameMode);
if (!currentElo.isPresent()) return "§8✧ ✦ ✶ ✷ ✸ ✹ ❂"; if (!currentElo.isPresent()) return "§8✧ ✦ ✶ ✷ ✸ ✹ ❂";
int maxEloOfGameMode = UserElo.getMaxElo(gameMode); int maxEloOfGameMode = UserElo.getMaxElo(gameMode);