I have a server and I want it to be able to show ranks on the sidebar (VIP, Diamond, ect.). I have tried to use the scoreboard command with a dummy but it does not accept words. Is there a way I can display ranks on the sidebar without mods or plugins?
Minecraft – the Minecraft scoreboard command to display words
minecraft-commandsminecraft-java-edition
Best Answer
You cannot change the type of value shown on the sidebar in vanilla; it will always be a name followed by an integer score.
However, you can use vanilla's team prefix/suffix feature to display text before or after the names of those within the team (which includes fake players/non-player entities).
In-game
Create scoreboard teams to represent ranks.
Insert players into the appropriate teams.
Create a dummy objective to show on the sidebar and initialize players with a score of 0. The score itself won't matter unless you want to sort players in a specific manner.
However, if you wanted to order it based on rank, you can give players with a higher rank a higher score:
Editing team prefix/suffix
Exit the world. Navigate to the
<world name>/data/scoreboard.dat
file and open it with an NBT editor such as NBTExplorer.Open the
data
compound, theTeams
list, and then locate the teams you want to modify. Edit the prefix/suffix to include text for display, which can include section-symbol-formatted codes.Final result
When you enter the world again, your name will include the additional text: