"XP SHOP" on bukkit?

Discussion in 'Plugin Development' started by GaaTavares, Jun 16, 2013.

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

    GaaTavares

    Hello guys, i'm trying to developer a pvp system/xp:

    When someone kill a player, the killer win 1 experiencie, and they can swap this for enchantments/armor etc
    I finished the give xp system, but i can't developer the buy. Per example

    Command: /diamond
    if (player.getExperience().WHAT I PUT HERE?)
    If player has 10 experience, he can buy a item, per example?
    HELP ?

    Sorry for my english, i'm brazilian :c

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  2. Offline

    chasechocolate

    It should be player.getLevel().
     
  3. Offline

    GaaTavares


    I think too, but i cant get another variables with . after player.getLevel() o_o
     
  4. Offline

    chasechocolate

    && for and comparisons, || for or comparisons.
     
  5. Offline

    GaaTavares


    Oh thanks man, saved my life :D
     
Thread Status:
Not open for further replies.

Share This Page