DiscordSRV

DiscordSRV

86.8k Downloads

Fallback NicknameSynchronizationFormat if the given one is too long

TheKrafter opened this issue ยท 0 comments

commented

Why?

I like to, on my server, have the nicknames sync to %discord_name% (%username%) so people know who a discord person's username is easily.
However, some usernames are too long, so it appears as something like S h o r t P e r s o n (.ShortPer when they have a long discord name. There's no stopping people from having long display names.
It would be nice if there was another config option in synchronization.yml so you could, for example, nickname them to %username% if the other option exceeds discord's nickname limit.

What and How?

After NicknameSynchronizationFormat in syncronization.yml, there would be another option, say ShorterNicknameSynchronizationFormat. When syncing usernames, if ShorterNicknameSynchronizationFormat is enabled, instead of truncating the nickname for it to fit, it uses ShorterNicknameSynchronizationFormat instead (probably truncating that too just in case).

Are there alternatives?

One could simply use a shorter nickname in NicknameSynctonizationFormat, but for most players and usernames the discord and minecraft usernames already fit.

Checks

  • I have used the search at least once to check if my idea has already been suggested and perhaps already implemented.

Anything else

No response