Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dupe in tab!? #13

Open
ItzOverLight opened this issue Sep 2, 2023 · 0 comments
Open

Dupe in tab!? #13

ItzOverLight opened this issue Sep 2, 2023 · 0 comments

Comments

@ItzOverLight
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant