mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Fail safe for duplicated user entries
This commit is contained in:
parent
6643a456e5
commit
8e61bf2d28
@ -897,6 +897,14 @@ public abstract class JobsDAO {
|
||||
JobsConnection conn = getConnection();
|
||||
if (conn == null)
|
||||
return;
|
||||
|
||||
// Checking possible record in database to avoid duplicates
|
||||
PlayerInfo info = loadPlayerData(uuid);
|
||||
if (info != null) {
|
||||
Jobs.getPlayerManager().addPlayerToMap(info);
|
||||
return;
|
||||
}
|
||||
|
||||
PreparedStatement prestt = null;
|
||||
ResultSet res2 = null;
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user