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:
parent
c9a8b6ba0a
commit
b051b20471
@ -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);
|
||||
// }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user