Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

how to make the name of the site in the scoreboard instead of hypixel.net, etc.?

catchs

New member
Joined
Jun 27, 2021
Messages
5
Reaction score
2
Points
0
how to make the name of the site in the scoreboard instead of hypixel.net, etc.?
 
This is quite simple.
You just have to go into the method where the scoreboard is rendered and replace the domain of the server.
In 1.8.8 this is in the class "GuiIngame". The method is called "renderScoreboard". In the method you will find 2 for loops and in the lower loop text is rendered and you just have to replace it.


Rich (BB code):
for (Score score1 : collection) {
    ++j;
    ScorePlayerTeam scoreplayerteam1 = scoreboard.getPlayersTeam(score1.getPlayerName());
    String s1 = Methods.getTextWithReplacedUsername(ScorePlayerTeam.formatPlayerName(scoreplayerteam1, score1.getPlayerName()), true);
    String s2 = EnumChatFormatting.RED + "" + score1.getScorePoints();
    int k = j1 - j * this.getFontRenderer().FONT_HEIGHT;
    int l = scaledRes.getScaledWidth() - k1 + 2;
    drawRect(l1 - 2, k, l, k + this.getFontRenderer().FONT_HEIGHT, 1342177280);
    this.getFontRenderer().drawString(s1, l1, k, 553648127); // the text of the scoreboard. Just replace s1 with s1.replaceAll("ANTIAC.NET", "Whatever")
    this.getFontRenderer().drawString(s2, l - this.getFontRenderer().getStringWidth(s2), k, 553648127); // red numbers

    if (j == collection.size()) { // this will be the first line of the scoreboard
        String s3 = objective.getDisplayName(); // depents on the server but could also be this string. just append .replaceAll("ANTIAC.NET", "Whatever")
        drawRect(l1 - 2, k - this.getFontRenderer().FONT_HEIGHT - 1, l, k - 1, 1610612736);
        drawRect(l1 - 2, k - 1, l, k, 1342177280);
        this.getFontRenderer().drawString(s3, l1 + i / 2 - this.getFontRenderer().getStringWidth(s3) / 2, k - this.getFontRenderer().FONT_HEIGHT, 553648127);
    }
}

Note that you also need to replace the color codes if the server has some sort of rainbow text or something similar
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top