1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

In case its not existing

This commit is contained in:
Zrips 2016-11-19 13:15:31 +02:00
parent f24811d44a
commit 5836581eec

View File

@ -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();