diff --git a/src/de/steamwar/bungeecore/commands/RankCommand.java b/src/de/steamwar/bungeecore/commands/RankCommand.java index 9b64602f..73f358b5 100644 --- a/src/de/steamwar/bungeecore/commands/RankCommand.java +++ b/src/de/steamwar/bungeecore/commands/RankCommand.java @@ -51,7 +51,7 @@ public class RankCommand extends BasicCommand { if (elo.isPresent()) { int placement = UserElo.getPlacement(elo.get(), mode.getSchemType()); - Message.send("RANK_PLACED", player, elo.get(), placement); + Message.send("RANK_PLACED", player, placement, elo.get()); } else { Message.send("RANK_UNPLACED", player); } diff --git a/src/de/steamwar/bungeecore/sql/UserElo.java b/src/de/steamwar/bungeecore/sql/UserElo.java index 3541968f..cc418a06 100644 --- a/src/de/steamwar/bungeecore/sql/UserElo.java +++ b/src/de/steamwar/bungeecore/sql/UserElo.java @@ -95,7 +95,7 @@ public class UserElo { public static int getPlacement(int elo, String gameMode) { return place.select(rs -> { if (rs.next()) - return rs.getInt("Place"); + return rs.getInt("Place") + 1; return -1; }, gameMode, elo, Season.getSeason()); }