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.