mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +01:00
In case its not existing
This commit is contained in:
parent
f24811d44a
commit
5836581eec
@ -762,8 +762,12 @@ public abstract class JobsDAO {
|
|||||||
prest = conn.prepareStatement("SELECT * FROM `" + prefix + "users`;");
|
prest = conn.prepareStatement("SELECT * FROM `" + prefix + "users`;");
|
||||||
res = prest.executeQuery();
|
res = prest.executeQuery();
|
||||||
while (res.next()) {
|
while (res.next()) {
|
||||||
Jobs.getPlayerManager().getPlayerMap().put(res.getString("player_uuid"), new PlayerInfo(res.getString("username"), res.getInt("id"), res.getLong(
|
long seen = System.currentTimeMillis();
|
||||||
"seen")));
|
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) {
|
} catch (SQLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user