geforkt von SteamWar/BungeeCore
Merge pull request 'Fix whois NPE on never connected user' (#262) from whoisFix into master
Reviewed-on: SteamWar/BungeeCore#262 Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Commit
f798c1bf8c
@ -329,7 +329,7 @@ public class SteamwarUser {
|
||||
|
||||
public double getOnlinetime() {
|
||||
return getPlaytime.select(rs -> {
|
||||
if(rs.next())
|
||||
if(rs.next() && rs.getBigDecimal("Playtime") != null)
|
||||
return rs.getBigDecimal("Playtime").doubleValue();
|
||||
return 0.0;
|
||||
}, id);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren