geforkt von SteamWar/BungeeCore
Fix whois NPE on never connected user
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
e66dd48b89
Commit
adeb5de034
@ -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