Ok I Made the max level in my server for skills 120. My codes in my playerassist.java is

public int getLevelForXP(int exp) {
int points = 0;
int output = 0;
if (exp > 20000000)
return 120;
for (int lvl = 1; lvl <= 120; lvl++) {
points += Math.floor((double) lvl + 300.0
* Math.pow(2.0, (double) lvl / 7.0));
output = (int) Math.floor(points / 4);
if (output >= exp) {
return lvl;
}
}
return 0;
}




My Player.java is


public int getLevelForXP(int exp) {
int points = 0;
int output = 0;

for (int lvl = 1; lvl <= 120; lvl++) {
points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));
output = (int)Math.floor(points / 4);
if (output >= exp)
return lvl;
}
return 120;
}





The Problem is you can get to 120. But for some reason it slowly goes back to 99/120. Anyone know the fix?