LukaDeVrij / PublicPlaytime

Minecraft paper plugin that makes the playtime for each player visible for all
MIT License
2 stars 0 forks source link

Scoreboard command does not account for other objectives in display slots that are not sidebar #2

Open LukaDeVrij opened 1 year ago

LukaDeVrij commented 1 year ago

When HP displayed in tabList and sidebar, the tabList will be reset. originalObjective.setDisplaySlot(DisplaySlot.SIDEBAR);

setDisplaySlot: Sets this objective to display on the specified slot for the scoreboard, removing it from any other display slot.

This is where the problem lies.

I probably won't fix this, until I have a fundamentally better way of dealing with scoreboards, and the issue is quite rare.

LukaDeVrij commented 10 months ago

Since 1.2.3 this is slightly different. Issue is similar, but cause is different. Scoreboards are now swapped in their entirety, not just the objectives. A new scoreboard is made, which is swapped on the players command. It does not change anything within the main scoreboard. When other objectives are shown on the main scoreboard that are not side_bar, these will also not be visible while the new scoreboard is visible.