Dieser Commit ist enthalten in:
Ursprung
c74121f011
Commit
89e8337320
@ -113,12 +113,14 @@ public class Leaderboard implements Listener {
|
|||||||
|
|
||||||
private long getPlayerTime(SteamwarUser user) {
|
private long getPlayerTime(SteamwarUser user) {
|
||||||
return PLAYER_TIME.select(resultSet -> {
|
return PLAYER_TIME.select(resultSet -> {
|
||||||
|
resultSet.next();
|
||||||
return resultSet.getLong("Time");
|
return resultSet.getLong("Time");
|
||||||
}, configKey, user.getId());
|
}, configKey, user.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getPlayerPlacement(SteamwarUser user) {
|
private int getPlayerPlacement(SteamwarUser user) {
|
||||||
return PLAYER_PLACEMENT.select(resultSet -> {
|
return PLAYER_PLACEMENT.select(resultSet -> {
|
||||||
|
resultSet.next();
|
||||||
return resultSet.getInt("Placement");
|
return resultSet.getInt("Placement");
|
||||||
}, configKey, configKey, user.getId());
|
}, configKey, configKey, user.getId());
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren