(03-17-2023, 02:48 AM)NiLSPACE Wrote: Ah, because of your example with 'Admin' I assumed you wanted prefixes for roles.
Haha don't worry, the example I used gave this impression. Sorry
Quote:The prefix and suffix missing in the player list definitely seems like an oversight. Perhaps that's done because of the character limit, but it's not documented at least.
Definitely, exceeding the 16 character limit may cause other clients to crash
Quote:The scoreboard has always been a bit of a mystery to me. I looked through the protocol files, but I can't find anything related to teams, so I'm guessing it hasn't been implemented.
I think for everyone it is, Bukkit/Sponge for example have a per-player Scoreboard system (That is not saved to disk).
In general, scoreboard teams are just "placeholders" that can contain special functions/flags for players who are in them, such as: Friendly-fire; Players can see teammates with invisibility effect; Collision can be ignored between teammates; Enemies name can be in another color to help distinguish enemy/teammat
But the most important feature of teams are the prefixes and suffixes, as they have the ability to exceed the 16-character limit. The limit of each is 16 too, but adding them plus the player name limit, we ended up having a username with 48 characters
This is how player prefixes such "Admin" or "VIP" before username are done without bypassing default 16 limit in Bukkit/Sponge based servers.
I'll leave the suggestion of this implementation
Again, thanks for the response