setTotalExperience does not work

Discussion in 'Plugin Development' started by Mike724, Oct 1, 2012.

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

    Mike724

    Why doesn't the method setTotalExperience(int xp) not work?

    I'm calling it correctly, like this:
    p.setTotalExperience(xp);
    where p is a player and xp is an integer (like 473)

    It does not change my experience in game
     
  2. Offline

    Comphenix

    You should use giveExp instead. But, that too is a bit counter-intuitive, as it doesn't give the amount you'd expect.

    You're better off with using a custom library that does all the messy work for you.
     
Thread Status:
Not open for further replies.

Share This Page