Solved Level bar disappears

Discussion in 'Spigot Plugin Development' started by TheZettel, Apr 28, 2017.

  1. Hey guys!
    I'm trying to do a lobby countdown in the xp-bar.
    My problem is, when the countdown is at 0, the level bar disappears.

    I dont have any ideas how to fix that.


    Thanks in advance!
     
  2. NathanWolf

    Supporter

    The xp bar or the level number?

    The level number will never show 0, I don't think there's anything you can do about that.
    The exp bar never goes away in survival, though.
     
    • Friendly Friendly x 1
  3. It can go away I have had this happen before. I forget why it was happening but I am pretty sure I was just setting the levels to a ridiculous number or a negative number I forget.
     
    • Informative Informative x 1
  4. I've found a solution for this. I only set the level to 0 and set a really low amount of exp to the player (0,0001). The xp bar is now shown and everything works fine :)
     
  5. Set thread to solved.
     
    • Agree Agree x 1