Skip to content

Dupe in tab!?  #13

@ItzOverLight

Description

@ItzOverLight
private void createScoreBoard(Player p, List<String> lines, String displayName) {
        Scoreboard scoreboard = ScoreboardLib.createScoreboard(p).setHandler(new ScoreboardHandler() {
            @Override
            public String getTitle(Player player) {
                return displayName;
            }

            @Override
            public List<Entry> getEntries(Player player) {
                EntryBuilder builder = new EntryBuilder();
                for(String l: lines) {
                    if(l == null || l.isEmpty()) builder.blank();
                    else builder.next(Utils.setDisplayString(p, l));
                }
                return builder.build();
            }
        }).setUpdateInterval(5);
        scoreboard.activate();
    }

This is my code... in Utils i replace my placeholders & placeholders of PlaceHolderAPI...
I shade the library into my plugin
now i see my name in tab, bruh
what happend?
images:
https://cdn.discordapp.com/attachments/1118607519057715250/1147370694087290910/image.png
https://cdn.discordapp.com/attachments/1118607519057715250/1147370694334750720/image.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions