Set needed exps for next level

Discussion in 'Plugin Development' started by perwin, Apr 6, 2013.

Thread Status:
Not open for further replies.
  1. Offline


    I need to know how to set amount of needed exps for next level. E.g. I need to set that a player needs from level 1 1000 exps to level 2, not 17 as is default.
    Thanks for your replies.
  2. Offline


  3. Offline


    IDK this event would help, because it's just thrown when the player changed his level and it has nothing to do with changing needed exps.
  4. Offline


    This is about the most accurate cumulative xp formula I've found.

    public static int totalXP(int lvl){
    // y = 1.75x^2+4.9997x+0.1327
    return (int) (1.75*Math.pow(lvl,2)+4.9997*lvl+0.1327);
    public static void main(String args[]){
    for (int i = 1; i < 51; i++){
    System.out.println("Level " + i + ": " + totalXP(i));
Thread Status:
Not open for further replies.

Share This Page