Solved create unique player scoreboards

Discussion in 'Plugin Development' started by qhenckel, Oct 26, 2013.

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

    qhenckel

    So I am working on a plugin that displays information on the scoreboard. All of that is working great. But all the players see the same scoreboard how do I control that aspect? I need to be able to create one scoreboard per person.
     
  2. Offline

    TheUpdater

    dont think that is possible but if you found out how tell me pls
     
  3. Offline

    qhenckel

    TheUpdater hypixel has it on there servers. it shows you kills, ammo, coins... stuff like that.
     
  4. Offline

    Wingzzz

    qhenckel
    You must create a scoreboard for each player. Then, provide each scoreboard the scores of offline players with values unique to each player (effectively creating those "kills" and "money" displays). You can do it when a player connects, simply in the listener create a scoreboard, create the scores, and assign the scoreboard to the player.

    Keep in mind, you will need to store the scoreboard somewhere if you intend to change its values at another time.
     
  5. Offline

    jessedevries20

    Wingzzz
    Not necessary to store the scoreboard, Player has a getScoreboard() method.
     
  6. Offline

    TheUpdater

    this is confusing
     
  7. Offline

    Wingzzz

    Ah, that's right :)
     
  8. Offline

    qhenckel

Thread Status:
Not open for further replies.

Share This Page