Give exp to players

Discussion in 'Plugin Development' started by Moon_werewolf, Jan 3, 2013.

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

    Moon_werewolf

    I'm working on a plugin that going to give exp to players. But don't know the codes for it.
     
  2. Offline

    Jogy34

    player.giveExp(int amount) or player.giveExpLevels(int amount)
     
  3. Offline

    Moon_werewolf

    Thanks that worked... but now I have the opposite problem. How do I remove exp? player.setExp(player.getExp() - 17); don't exactly work.
     
  4. Offline

    gomeow

    How does it not work? You may be thinking of player.getLevel()
     
  5. Offline

    Moon_werewolf

    It doesn't work for I want to remove 17 exp that I gave the player with the giveExp code. But setExp is a float to next level.
     
  6. Offline

    fireblast709

  7. Offline

    desht

Thread Status:
Not open for further replies.

Share This Page