Solved Removing player from scoreboard

Discussion in 'Plugin Development' started by willeb96, Mar 16, 2014.

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

    willeb96

    Hey guys.
    Shouldn't
    Code:java
    1. Team.removePlayer(OfflinePlayer)

    remove the player from the scoreboard, or does it only remove him from the team?
     
  2. Offline

    N00BHUN73R

    Can I see the main class that it is in?
     
  3. Offline

    willeb96

    My class setup is kind of complicated, it would take a while to read through and understand it all.
    If I could just get an answer to the question that would be good enough, should the Team.removePlayer() method remove the players name from the scoreboard on the side of the screen?
     
  4. Offline

    97WaterPolo

    willeb96
    That removes them from the team not the scoreboard?

    Try setting the player to null, might remove it. Check the java docs, pretty sure something there explains it.
     
  5. Offline

    Gater12

    willeb96
    Yes that will remove them from a Team. I predict you want them to be removed from the objectives. Just use resetScores(OfflinePlayer); of your wanted Objective
     
    willeb96 likes this.
  6. Offline

    willeb96

    Gater12
    Thank you very much!
    Scoreboard.resetScores(OfflinePlayer) did the trick :)
     
Thread Status:
Not open for further replies.

Share This Page