mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 12:05:16 +01:00
Can't call commit when autocommit=true
Should fix SQLException when player limit saved
This commit is contained in:
parent
0abdf99c85
commit
d4a2add86e
@ -860,7 +860,6 @@ public abstract class JobsDAO {
|
||||
}
|
||||
prest.executeBatch();
|
||||
conn.commit();
|
||||
conn.setAutoCommit(true);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
@ -1256,8 +1255,6 @@ public abstract class JobsDAO {
|
||||
// calculate the max level
|
||||
// add the progression level.
|
||||
jPlayer.progression.add(jobProgression);
|
||||
|
||||
jPlayer.getArchivedJobs().addArchivedJob(jobProgression);
|
||||
}
|
||||
jPlayer.reloadMaxExperience();
|
||||
jPlayer.reloadLimits();
|
||||
|
Loading…
Reference in New Issue
Block a user