Jump to content

Recommended Posts

Posted (edited)

How can I get the entire content of the scoreboard? Rn i'm using this code https://gist.github.com/anonymous/a96d876851d637bad91ad0aa9b161097 but I'm only getting the last 3 characters of each line. Because I didn't find any solutions anywhere and I don't understant those two functions that much im sort of stuck

Edited by Kirk_KD
add words
Posted (edited)

Yes I tried scoreboard.getObjectiveNames() but its still the last three characters of each line, can I get a working example? ty

Edit actually its not 3 characters if I do `new ArrayList<>(scoreboard.getObjectiveNames())`, instead its the last half of each line. for example "Games in this lobby are   " will be "s lobby are"

Edited by Kirk_KD
Posted (edited)

Objective.getDisplayName only gets the title for some reason, i want each line in the sidebar

for example if I do

        for (int i = 0; i < 11; i++) {
            ScoreObjective objective = scoreboard.getObjectiveInDisplaySlot(i);
            if (objective == null)
                Utils.sendPrivateMessage(i + "null");
            else
                Utils.sendPrivateMessage(i + objective.getDisplayName());

none of the lines gets sent to chat, only the scoreboard title and "null"s 

Edited by Kirk_KD
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.