[URGENT] Scoreboard Help!

Discussion in 'Plugin Development' started by zDubsCrazy, Jun 19, 2014.

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

    zDubsCrazy

    What i need is simple but i don't achieving. I need create a scoreboard showing the Kills and Deaths of players, saving values in .yml file; the file i know how to do, but i have a problem: all players sees the same values but i want that one sees your own values. Hope you can help me!

    Thanks.
     
  2. Offline

    chasechocolate

    Just give each player a different scoreboard when they login, according to THEIR values saved in the file.
     
  3. Offline

    zDubsCrazy

  4. Offline

    fireblast709

  5. Offline

    zDubsCrazy

  6. Offline

    fireblast709

  7. Offline

    zDubsCrazy

    fireblast709
    Ok, but how i do get number of player (it i know how to do), and create a Scoreboard for each automatcally?
     
  8. Offline

    fireblast709

  9. Offline

    zDubsCrazy

    fireblast709 :eek: I'm new but not so!
    So is it so?
    Code:java
    1. @EventHandler
    2. public void onJoin(PlayerJoinEvent event) {
    3. /*Scoreboard Code Here */
    4. for(Player online : Bukkit.getOnlinePlayers()) {
    5. online.setScoreboard(myScoreboard);
    6. score1.setScore(getConfig().getInt("Plugin." + online.getName() + ".kills"));
    7. score2.setScore(getConfig().getInt("Plugin." + online.getName() + ".deaths"));
    8. }
    9. }
     
  10. Offline

    TheWolfBadger

  11. Offline

    jebbo

    Just test it. It should work tho.
     
  12. Offline

    zDubsCrazy

    TheWolfBadger
    That's the problem, I do not have a complete code. I do not know how to do it, I can create simple Scoreboards (although this also be), but I can not make this.
     
  13. Offline

    fireblast709

    zDubsCrazy combine what chasechocolate said with the information from the javadocs link I gave you. You need to create a Scoreboard per player, and only set it for that player
     
  14. Offline

    mkezar

    plz bump after 24 hours of posting :)
     
  15. Offline

    zDubsCrazy

    jebbo
    No, don't work.

    fireblast709
    Sorry. I do not understand.

    fireblast709
    I do not know how to do, I'm a BEGINNER.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  16. Offline

    Rocoty

    zDubsCrazy
     
  17. Offline

    zDubsCrazy

    Rocoty
    I understand, but my case is urgent, I'm sorry sir moderator. :confused:
     
  18. Offline

    fireblast709

    zDubsCrazy then read the bloody documentation
     
  19. Offline

    zDubsCrazy

    fireblast709
    I have a problem, I'm Brazilian, I do not speak English and the translator is very bad, you write something, but when translating is all wrong and I just not understand anything.
     
  20. Offline

    Rocoty

    zDubsCrazy Your case is not more urgent or more important than anyone else's on these forums. Rules state you should not bump your thread more than once within a 24 hour time span. You are not exempt from this rule.
     
  21. Offline

    zackpollard

    <-
    <-
    <-
    <-
    <-
    You're... speaking english right now... I understand you're using a translator, just use it on the javadocs...
     
  22. Offline

    hamzaxx

     
    zDubsCrazy likes this.
  23. Offline

    zackpollard

    hamzaxx
    So bad in fact, that he can understand what we are saying, but not what the JavaDocs say. Think about it.
     
  24. Offline

    zDubsCrazy

    zackpollard
    Use the translator in JavaDocs not help me at all, it translates literally (do not know if you will understand this), you have a complete and well-formed sentence, it shows me she is incoherently.
     
Thread Status:
Not open for further replies.

Share This Page