Skip to content

Commit

Permalink
Hide numbers on sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
ellieisjelly committed Feb 12, 2024
1 parent 7332b7f commit b824bbc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import net.minecraft.network.packet.s2c.play.TeamS2CPacket;
import net.minecraft.scoreboard.Scoreboard;
import net.minecraft.scoreboard.Team;
import net.minecraft.scoreboard.number.BlankNumberFormat;
import net.minecraft.screen.ScreenTexts;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.world.ServerWorld;
Expand Down Expand Up @@ -210,6 +211,12 @@ public void setSidebars() {
detectiveSidebar.removePlayer(plr);
innocentSidebar.removePlayer(plr);
});

globalSidebar.setDefaultNumberFormat(BlankNumberFormat.INSTANCE);
innocentSidebar.setDefaultNumberFormat(BlankNumberFormat.INSTANCE);
detectiveSidebar.setDefaultNumberFormat(BlankNumberFormat.INSTANCE);
saboteurSidebar.setDefaultNumberFormat(BlankNumberFormat.INSTANCE);

saboteurs.forEach(plr -> saboteurSidebar.addPlayer(plr));
detectives.forEach(plr -> detectiveSidebar.addPlayer(plr));
innocents.forEach(plr -> innocentSidebar.addPlayer(plr));
Expand Down

0 comments on commit b824bbc

Please sign in to comment.