Scoreboard slots are not case-sensitive
The Bug
Scoreboard display slot names are not case-sensitive, which is inconsistent with item slots, many other arguments, and even scoreboard slots themselves.
To Reproduce
/scoreboard objectives setdisplay sidebar
No syntax error.
/scoreboard objectives setdisplay SIDEBAR.team.aqua
Reports syntax error.
/scoreboard objectives setdisplay SIDEBAR
No syntax error.
Code Analysis
Using yarn's mappings for 1.15.1.
In net/minecraft/scoreboard/Scoreboard#getDisplaySlotId, equalsIgnoreCase is used, instead of simple equals.
Created Issue:
Scoreboard slots are not case-sensitive
The Bug
Scoreboard display slot names are not case-sensitive, which is inconsistent with item slots, many other arguments, and even scoreboard slots themselves.
To Reproduce
/scoreboard objectives setdisplay sidebar
No syntax error.
/scoreboard objectives setdisplay SIDEBAR.team.aqua
Reports syntax error.
/scoreboard objectives setdisplay SIDEBAR
No syntax error.
Code Analysis
Using yarn's mappings for 1.15.1.
In net/minecraft/scoreboard/Scoreboard#getDisplaySlotId, equalsIgnoreCase is used, rather than simply equals.
The Bug
Scoreboard display slot names are not case-sensitive, which is inconsistent with item slots, many other arguments, and even scoreboard slots themselves.
To Reproduce
/scoreboard objectives setdisplay sidebar
No syntax error.
/scoreboard objectives setdisplay SIDEBAR.team.aqua
Reports syntax error.
/scoreboard objectives setdisplay SIDEBAR
No syntax error.
Code Analysis
Using yarn's mappings for 1.15.1.
In net/minecraft/scoreboard/Scoreboard#getDisplaySlotId, equalsIgnoreCase is used,rather thansimply equals.The Bug
Scoreboard display slot names are not case-sensitive, which is inconsistent with item slots, many other arguments, and even scoreboard slots themselves.
To Reproduce
/scoreboard objectives setdisplay sidebar
No syntax error.
/scoreboard objectives setdisplay SIDEBAR.team.aqua
Reports syntax error.
/scoreboard objectives setdisplay SIDEBAR
No syntax error.
Code Analysis
Using yarn's mappings for 1.15.1.
In net/minecraft/scoreboard/Scoreboard#getDisplaySlotId, equalsIgnoreCase is used, instead of simply using equals.
The Bug
Scoreboard display slot names are not case-sensitive, which is inconsistent with item slots, many other arguments, and even scoreboard slots themselves.
To Reproduce
/scoreboard objectives setdisplay sidebar
No syntax error.
/scoreboard objectives setdisplay SIDEBAR.team.aqua
Reports syntax error.
/scoreboard objectives setdisplay SIDEBAR
No syntax error.
Code Analysis
Using yarn's mappings for 1.15.1.
In net/minecraft/scoreboard/Scoreboard#getDisplaySlotId, equalsIgnoreCase is used, instead of simply usingequals.The Bug
Scoreboard display slot names are not case-sensitive, which is inconsistent with item slots, many other arguments, and even scoreboard slots themselves.
To Reproduce
/scoreboard objectives setdisplay sidebar
No syntax error.
/scoreboard objectives setdisplay SIDEBAR.team.aqua
Reports syntax error.
/scoreboard objectives setdisplay SIDEBAR
No syntax error.
Code Analysis
Using yarn's mappings for 1.15.1.
In net/minecraft/scoreboard/Scoreboard#getDisplaySlotId, equalsIgnoreCase is used, instead of simple equals.



Can confirm in 21w06a.
Can confirm in 1.16.5 and 21w10a. Video attached
Can confirm in 21w14a.
Can confirm in 21w16a.
Can confirm in 1.17.
Can confirm in 1.17.1.
Can confirm in 1.18.1.
Can confirm in 1.18.2 and 22w12a.
Can confirm in 1.19.
Can confirm in 1.19.2.