From 5836581eecf6063fdb9ac1e7d42e18e27437d31c Mon Sep 17 00:00:00 2001 From: Zrips Date: Sat, 19 Nov 2016 13:15:31 +0200 Subject: [PATCH] In case its not existing --- com/gamingmesh/jobs/dao/JobsDAO.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/com/gamingmesh/jobs/dao/JobsDAO.java b/com/gamingmesh/jobs/dao/JobsDAO.java index 8705909a..583b896c 100644 --- a/com/gamingmesh/jobs/dao/JobsDAO.java +++ b/com/gamingmesh/jobs/dao/JobsDAO.java @@ -762,8 +762,12 @@ public abstract class JobsDAO { prest = conn.prepareStatement("SELECT * FROM `" + prefix + "users`;"); res = prest.executeQuery(); while (res.next()) { - Jobs.getPlayerManager().getPlayerMap().put(res.getString("player_uuid"), new PlayerInfo(res.getString("username"), res.getInt("id"), res.getLong( - "seen"))); + long seen = System.currentTimeMillis(); + try { + seen = res.getLong("seen"); + } catch (Exception e) { + } + Jobs.getPlayerManager().getPlayerMap().put(res.getString("player_uuid"), new PlayerInfo(res.getString("username"), res.getInt("id"), seen)); } } catch (SQLException e) { e.printStackTrace();