mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +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();
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user