CodeCrafter47 / BungeeTabListPlus

GNU General Public License v3.0
145 stars 69 forks source link

BTLP formatting text issue #578

Closed PlopHat closed 4 years ago

PlopHat commented 4 years ago

don't know if it is a bug or not, but btlp get only the last character of hex for ${player display_name}. i tried /papi parse me %player_displayname% an it returns the correct color.

Here's a post of imgur with images explaining. https://imgur.com/a/opljkEX

PlopHat commented 4 years ago

it is not a problem with BTLP, it's not possible right now, nickname in tab don't get translated correctly as part of minecraft i think (tested with other tab plugins and essentials nick)

CodeCrafter47 commented 4 years ago

Actually I think a1c163bd should have fixed this. Didn't test this myself, but if you update to the latest dev-build of BTLP it'll probably work.

PlopHat commented 4 years ago

Yes... and no, special formatting codes breaks tab (&n;&o;&k;&l), i'll re-open this issue if anyone has the same error.

https://i.imgur.com/GrRT2tV.png

Edit: link broken

CodeCrafter47 commented 4 years ago

What did you put in the config to make that happen?

PlopHat commented 4 years ago

${player vault_prefix}${player player_displayname} thats in tabconfig player component

CodeCrafter47 commented 4 years ago

What are a prefix and displayname to make the issue happen?

PlopHat commented 4 years ago

prefix was &lDev nick was &o&lasd the guy with the colored word paisen only has the "4" with bold and the name got that whole thing

CodeCrafter47 commented 4 years ago

Can you check if the latest dev-build fixes the issue?

PlopHat commented 4 years ago

Sadly nope, formatting text still breaks tab names i changed the placeholder for playercomponent to "${player display_name}" but still no luck. input: image What i see: image it gets broken with text formatting (bold, italic, obfuscated, underlined, strikethrough).

Hex and color codes work fine, only text formatting gets weird Input: image

Output: image

CodeCrafter47 commented 4 years ago

I've just tested this myself and did not experience this issue. I'm fairly certain that BungeeTabListPlus does not create the broken json. Probably it's already in the display name. You could use /papi parse %player_displayname% to check. Also make sure CMI and Spigot are up to date. Same goes for your other plugins - but they may not be that related to this issue.

PlopHat commented 4 years ago

Got fixed! TSM (forgot to disable another tab plugin, sorry about that 😭)