Solved Player name as String name.

Discussion in 'Plugin Development' started by Sking3000, May 18, 2016.

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

    Sking3000

    hi!

    i want to make a plugin that show each one his stats, i need to make a scoreboards for each player
    that join the server. so i want to make a scoreboard like that:


    Code:
    for (Player pl : Bukkit.getOnlinePlayers()){
                   
        String NameString = pl.getName() + "_board";
                       
        ScoreBoard NameString; //The name is the string...
        //etc...
                       
    }

    Do you know if there is way to make that?


    Thanks,
    Sking3000
     
  2. Offline

    ski23

    @Sking3000 I'm not entirely sure what you're asking. You can get a player's name using player.getDisplayName().
     
  3. Offline

    timtower Administrator Administrator Moderator

  4. Offline

    Sking3000

    i dont know how to use with map...
    can you give me an example please?
     
  5. Offline

    timtower Administrator Administrator Moderator

  6. Offline

    I Al Istannen

  7. Offline

    Sking3000

    Thank you!
     
Thread Status:
Not open for further replies.

Share This Page