TAB icon indicating copy to clipboard operation
TAB copied to clipboard

[Scoreboard] Forced colors when no colors are used

Open WMGameLive opened this issue 1 year ago • 23 comments

Server version

1.20.2

TAB version

4.1.2

Describe the bug

Colored output preview in parse command not match real output, see screenshots below.

Expected behavior

Steps to reproduce

Type some texts like "Text&&rcText" on tab, you will see.

Additional info

No response

Checklist

  • [X] I am running latest version of the plugin
  • [X] I have read the wiki to make sure it's not an issue with configuration
  • [ ] I ticked all of the boxes without actually reading them
  • [X] I have read the Compatibility wiki page and am not trying to run the plugin on an unsupported server version / platform
  • [X] I am willing to cooperate to get this issue resolved faster, including providing any additional information requested or testing new builds

WMGameLive avatar Dec 29 '23 18:12 WMGameLive

I didn't understand your explanation. Sounds like conditions may help with this though.

NEZNAMY avatar Dec 29 '23 18:12 NEZNAMY

I didn't understand your explanation. Sounds like conditions may help with this though.

Sorry for my bad english.

My nickname plugin have a placeholder like this: image

If the player does not have permission, it will keep the color code like this: image

But if I put this placeholder on Tab, it will still get colored: image

So I need a way to display only the original text of the placeholder.

WMGameLive avatar Dec 29 '23 19:12 WMGameLive

Sounds like you want some changes to nickname placeholder code. TAB cannot change code of other plugins. Request this change in your nickname plugin.

NEZNAMY avatar Dec 29 '23 19:12 NEZNAMY

so it is no way to just show the text like the 'Raw colors:' in last screenshot? I am not want to change that placeholder code, keep color codes when player don't have permission is what I want.

WMGameLive avatar Dec 29 '23 19:12 WMGameLive

Maybe somehow with conditions you could build it up, but plugin doesn't offer this directly. What you are asking for is way too specific to your case to be added into the plugin. I don't even understand why would you want players without permission to have raw color codes visible, it would look ugly, no?

NEZNAMY avatar Dec 29 '23 19:12 NEZNAMY

This is just an example, not the only case, if some placeholders contain a '&', it will get replaced too, if I just want to display a & or # with some number, what can I do? image

WMGameLive avatar Dec 29 '23 19:12 WMGameLive

You can use a workaround, for example A&&rB.

NEZNAMY avatar Dec 29 '23 19:12 NEZNAMY

You can use a workaround, for example A&&rB.

ok, that work for keep the code but still get colored. image image

lines: - "&7◆&m &7◆" - " #ddffff&l%player%" - " &f◆ Nick: &r%nickname_name%"

WMGameLive avatar Dec 29 '23 20:12 WMGameLive

Not parsing colors for players without permission is not an available feature.

NEZNAMY avatar Dec 29 '23 20:12 NEZNAMY

But you "Colored output" not even match the real output.

Just type some text like "Text&&rcText" will also return a strange output, why dose it become "Text&&ccText" image

WMGameLive avatar Dec 29 '23 20:12 WMGameLive

But you "Colored output" not even match the real output.

Just type some text like "Text&&rcText" will also return a strange output, why dose it become "Text&&ccText" image

Will you fix this?

WMGameLive avatar Dec 30 '23 19:12 WMGameLive

Yes, bugs are being fixed. You just need to accept the fact that I am not dedicating my existence to a free plugin.

NEZNAMY avatar Dec 30 '23 19:12 NEZNAMY

I understand. You only give me an emoji and I don't understand what it mean so I just wanted to confirm if you plan to fix this bug. Thanks, and sorry to bother you.

WMGameLive avatar Dec 30 '23 19:12 WMGameLive

Yes, bug fixing is a provided service.

NEZNAMY avatar Dec 30 '23 19:12 NEZNAMY

I have fixed the red color issue in scoreboard. Other than that, I'm not sure what the issue is. Using the & symbol followed by a color code, but not wanting it to be treated as color code is something people usually don't do. Your case is very specific and must have a decent workaround available. I don't even think other plugins offer this.

NEZNAMY avatar Jan 02 '24 13:01 NEZNAMY

It always amazes me how people expect me to fix everything immediately but once I fix it, they have no interest in actually testing the fix.

NEZNAMY avatar Jan 05 '24 21:01 NEZNAMY

It always amazes me how people expect me to fix everything immediately but once I fix it, they have no interest in actually testing the fix.

Sorry, I didn't receive notification of your last reply.

I've compiled and tested it now, the issue still exist. image image

WMGameLive avatar Jan 05 '24 22:01 WMGameLive

    scoreboard:
      title: "&6&lTEST"
      lines:
      - '&fTest&&ra123'
      - '&fTest&&rb456'
      - '&fTest&&rc789'

image

Are you sure you have the latest code?

NEZNAMY avatar Jan 05 '24 22:01 NEZNAMY

    scoreboard:
      title: "&6&lTEST"
      lines:
      - '&fTest&&ra123'
      - '&fTest&&rb456'
      - '&fTest&&rc789'

image

Are you sure you have the latest code?

I just downloaded it, so it should be the latest I guess.

WMGameLive avatar Jan 05 '24 22:01 WMGameLive

You can download it from github actions and you don't need to compile anything.

NEZNAMY avatar Jan 05 '24 22:01 NEZNAMY

You can download it from github actions and you don't need to compile anything.

Oh that works. Thank you so much! image

WMGameLive avatar Jan 05 '24 22:01 WMGameLive

Anything else?

NEZNAMY avatar Jan 05 '24 22:01 NEZNAMY

No, that's it, thank you.

WMGameLive avatar Jan 05 '24 22:01 WMGameLive