geforkt von SteamWar/BungeeCore
Fix Placement
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
f8b0d13676
Commit
23f8e687ad
@ -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);
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren