Scoreboard score

Discussion in 'Plugin Development' started by Megolas, Oct 22, 2013.

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

    Megolas

    Hey, I'm currently trying to show a zero in the score area, and as far as I know, that requires using ScoreboardScore and not Bukkit's API.
    Bukkit's API is rather comfortable, so I was wondering if there's a workaround, or a way to get ScoreboardScore from score so I can keep using it instead of the messy packets way.
    Thanks
     
  2. Offline

    Megolas

    Assist
     
  3. Offline

    Megolas

    Bump?
     
  4. Offline

    drtshock

    Set the score to 1 then subtract 1 ;)
     
  5. Offline

    Megolas

    drtshock
    I do use .setScore(0), but it doesn't work (Not showing)... Is that do you mean by set to 1 and subtract 1?
     
  6. Offline

    njb_said

    Use bukkit api or whatever you want but mojang apparently didnt fix the "bug" where if the score is 0 to begin with it wont show as the scoreboard was designed that way.
    So to counter this do what drtshock said

    Set the score to 1 (setScore(1)) then set it to whatever number you would like be it 0 or 1000 or an integer somewhere in your plugin. You must set it to 1 or a number > 0 or else it wont show anything because minecraft doesn't think it should show :p
     
Thread Status:
Not open for further replies.

Share This Page