mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-04 23:37:49 +01:00
Perform commands on promotion
This commit is contained in:
parent
c9a8b6ba0a
commit
b051b20471
@ -501,7 +501,8 @@ public class JobsPlayer {
|
|||||||
return;
|
return;
|
||||||
if (levels <= 0)
|
if (levels <= 0)
|
||||||
return;
|
return;
|
||||||
int newLevel = prog.getLevel() + levels;
|
int oldLevel = prog.getLevel();
|
||||||
|
int newLevel = oldLevel + levels;
|
||||||
|
|
||||||
int maxLevel = job.getMaxLevel(this);
|
int maxLevel = job.getMaxLevel(this);
|
||||||
|
|
||||||
@ -509,6 +510,7 @@ public class JobsPlayer {
|
|||||||
newLevel = maxLevel;
|
newLevel = maxLevel;
|
||||||
}
|
}
|
||||||
setLevel(job, newLevel);
|
setLevel(job, newLevel);
|
||||||
|
Jobs.getPlayerManager().performCommandOnLevelUp(this, job, newLevel - 1);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user