1
0
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:
Zrips 2021-09-13 14:45:40 +03:00
parent 6643a456e5
commit 8e61bf2d28

View File

@ -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 {