1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-02 14:29:07 +01:00

Perform commands on promotion

This commit is contained in:
Zrips 2018-03-14 16:17:22 +02:00
parent c9a8b6ba0a
commit b051b20471

View File

@ -501,7 +501,8 @@ public class JobsPlayer {
return;
if (levels <= 0)
return;
int newLevel = prog.getLevel() + levels;
int oldLevel = prog.getLevel();
int newLevel = oldLevel + levels;
int maxLevel = job.getMaxLevel(this);
@ -509,6 +510,7 @@ public class JobsPlayer {
newLevel = maxLevel;
}
setLevel(job, newLevel);
Jobs.getPlayerManager().performCommandOnLevelUp(this, job, newLevel - 1);
// }
}