Scoreboard team prefix
#5
(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 Smile

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 effectCollision 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 Smile

Again, thanks for the responseBig Grin
Reply
Thanks given by:


Messages In This Thread
Scoreboard team prefix - by kazhiel - 03-15-2023, 10:34 AM
RE: Scoreboard team prefix - by NiLSPACE - 03-15-2023, 09:42 PM
RE: Scoreboard team prefix - by kazhiel - 03-16-2023, 03:49 AM
RE: Scoreboard team prefix - by NiLSPACE - 03-17-2023, 02:48 AM
RE: Scoreboard team prefix - by kazhiel - 03-17-2023, 04:14 AM



Users browsing this thread: 1 Guest(s)