How to get/set player level/experience

Discussion in 'Plugin Development' started by Sir Savary, Oct 11, 2011.

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

    Sir Savary

    I was just wondering, but how does one get/set a players experience/level?
     
  2. player.getExperience() and player.setExperience(int experience)
     
    victor2748 likes this.
  3. Offline

    Sir Savary

    @tips48
    Thank you very much! Now, is there a way to actually to get the level of the player? Like how many times the XP bar has been filled up? Or would I have write my own code for that?
     
    KaSkA3eR likes this.
  4. player.getLevel() and player.setLevel(int level)
     
  5. Offline

    Sir Savary

    @tips48
    You're a saint, than you very much!
     
    tips48 likes this.
  6. Offline

    Ozeir

    gj necro bump 3 year old thread
     
  7. Offline

    GeorgeeeHD

    Ozeir
    oh noes! why do people care if people post on old posts? never understood that...
     
    victor2748 likes this.
  8. Offline

    victor2748

    so? Does it make a difference if I post here, or Create a new thread with the EXACT same question?
     
  9. Offline

    Ozeir

    Yes it does.. why post on a 3 years old thread.. lol
     
  10. Offline

    victor2748

    oPryzeLP likes this.
Thread Status:
Not open for further replies.

Share This Page