Scoreboard Below Name

Discussion in 'Plugin Development' started by Dzikoysk, Dec 3, 2013.

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


    Hello, I have 2 questions. My code:
    1. Player p = (Player)this.player.getSingle(event);
    2. String s = (String)this.string.getSingle(event);
    3. if ((p == null) || (s == null)) return;
    4. ScoreboardManager sbManager = Bukkit.getScoreboardManager();
    5. Scoreboard sb = sbManager.getNewScoreboard();
    6. Objective OBJECTIVE = sb.registerNewObjective("custom", "dummy");
    7. OBJECTIVE.setDisplayName(s);
    8. OBJECTIVE.setDisplaySlot(DisplaySlot.BELOW_NAME);
    9. p.setScoreboard(sb);

    1. But when i set DisplaySlot, this is set for all players. I want set "tag" for single player. It's possible?
    2. And my string is preceted by 0, look: [​IMG]
    I can remove it?
  2. Offline


    No. It is part of the scoreboard :/
    As far as I am concerned, it is like trying to remove the right hand column of the side_bar scoreboard.
    Dzikoysk likes this.
  3. Offline


    Ok, thanks :). Maybe you have idea, how i can do it? I want to create plugin like NameTagEdit, but simplest. I'm writing addon to plugin Skript and i need it xP
  4. Offline


    I can set the tag for each team using scoreboard? Team name will be as name of player. It's possible? :)
  5. Offline


    Dzikoysk You can give them a prefix and suffix using Teams (which you can use to colour the names)

    Also, as far as I am aware, it is not possible since the [Ashe] tag is the display name of the Objective, which is equal for all players (as you see, other players that have a different tag, will see that tag on everyone)
    Dzikoysk likes this.
  6. Offline


    Ok, thanks! I'll try use team :)

    fireblast709 Thanks a lot, it's work! :)

    Subject to close :)
Thread Status:
Not open for further replies.

Share This Page