Solved Further Scoreboards

Discussion in 'Plugin Development' started by SourceForums, Dec 1, 2013.

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

    SourceForums

    Hey there, I'll just get on with the question quickly. After getting a scoreboard of a player, how do I loop through all the scores and check if the name of the score is the same as the player's display name? Please reply ASAP.
     
  2. Offline

    Yukari

    I haven't used scoreboards personally, so I'm not 100% on how they work.

    But run a for loop on scoreboard.getPlayers(), check if player.getName() matches.
     
  3. Offline

    SourceForums

    Yukari
    Thanks for the reply but no that wouldn't work.
     
  4. Offline

    Yukari

    Score has a getPlayer function, use that?
     
  5. Offline

    SourceForums

Thread Status:
Not open for further replies.

Share This Page