Skip to content

(Mis-)Detected link in Triton placeholder can result in underlined message #466

Open
@diogotcorreia

Description

@diogotcorreia

Describe the bug

If a placeholder (e.g. [lang]message.discord.line.one[/lang]) is converted to a link by another plugin, it might end up underlined.

How can the bug be reproduced?

Message dump:

{"extra":[{"bold":true,"color":"light_purple","extra":[{"underlined":true,"clickEvent":{"action":"open_url","value":"http://message.discord.line.one"},"text":"message.discord.line.one"},"[/lang]\n "],"text":"NETWORK\n [lang]"},{"color":"yellow","text":"Message"}],"text":"            "}

Expected behaviour

No response

Which Spigot fork are you using?

Vanilla Spigot (from BuildTools)

What's your server version?

unrelated

Which proxy are you using?

Velocity

What's your proxy version?

No response

What's the MC version of your client?

unrelated

What's the Triton version you're using?

4.0.0-SNAPSHOT-b20241218

Additional Information

Reported on Discord: https://discord.com/channels/395565283047374850/1325506157917241385/1326568614861606976

Metadata

Metadata

Assignees

Labels

module:coreRelated to the core moduleregressionSomething that was working but it isn't anymoretype:bugSomething isn't working as expected

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions