From 23f8e687ad18dad4bc1cf33a4c2c6fdcd55d2b2f Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 15 Mar 2022 10:03:00 +0100 Subject: [PATCH] Fix Placement Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/RankCommand.java | 2 +- src/de/steamwar/bungeecore/sql/UserElo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()); }