geforkt von SteamWar/BungeeCore
Fix UserElo
Dieser Commit ist enthalten in:
Ursprung
0d888dff1c
Commit
527576aa14
@ -143,7 +143,7 @@ public class UserElo {
|
|||||||
public static String getEmblemProgression(ProxiedPlayer player, String gameMode, int userId) {
|
public static String getEmblemProgression(ProxiedPlayer player, String gameMode, int userId) {
|
||||||
int fightsOfSeason = getFightsOfSeason(userId, gameMode);
|
int fightsOfSeason = getFightsOfSeason(userId, gameMode);
|
||||||
if (fightsOfSeason < 10) {
|
if (fightsOfSeason < 10) {
|
||||||
return Message.parse("RANK_NEEDED_FIGHTS_LEFT", player, "§8✧ ✦ ✶ ✷ ✸ ✹ ❂", 11 - fightsOfSeason);
|
return Message.parse("RANK_NEEDED_FIGHTS_LEFT", player, "§8✧ ✦ ✶ ✷ ✸ ✹ ❂", 10 - fightsOfSeason);
|
||||||
}
|
}
|
||||||
Optional<Integer> currentElo = UserElo.getElo(userId, gameMode);
|
Optional<Integer> currentElo = UserElo.getElo(userId, gameMode);
|
||||||
if (!currentElo.isPresent()) return "§8✧ ✦ ✶ ✷ ✸ ✹ ❂";
|
if (!currentElo.isPresent()) return "§8✧ ✦ ✶ ✷ ✸ ✹ ❂";
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren