1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Can't call commit when autocommit=true

Should fix SQLException when player limit saved
This commit is contained in:
montlikadani 2019-08-01 12:51:04 +02:00
parent 0abdf99c85
commit d4a2add86e

View File

@ -860,7 +860,6 @@ public abstract class JobsDAO {
} }
prest.executeBatch(); prest.executeBatch();
conn.commit(); conn.commit();
conn.setAutoCommit(true);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} finally { } finally {
@ -1256,8 +1255,6 @@ public abstract class JobsDAO {
// calculate the max level // calculate the max level
// add the progression level. // add the progression level.
jPlayer.progression.add(jobProgression); jPlayer.progression.add(jobProgression);
jPlayer.getArchivedJobs().addArchivedJob(jobProgression);
} }
jPlayer.reloadMaxExperience(); jPlayer.reloadMaxExperience();
jPlayer.reloadLimits(); jPlayer.reloadLimits();