From ca4a0c202253120036982b1b09b7b794b7ea579e Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 15 Mar 2022 09:53:24 +0100 Subject: [PATCH] Fix class Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/sql/UserElo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/sql/UserElo.java b/src/de/steamwar/bungeecore/sql/UserElo.java index a5fc2a0d..3541968f 100644 --- a/src/de/steamwar/bungeecore/sql/UserElo.java +++ b/src/de/steamwar/bungeecore/sql/UserElo.java @@ -139,7 +139,7 @@ public class UserElo { } 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 currentElo = UserElo.getElo(userId, gameMode); if (!currentElo.isPresent()) return "§8✧ ✦ ✶ ✷ ✸ ✹ ❂"; int maxEloOfGameMode = UserElo.getMaxElo(gameMode);