Skip to content
This repository has been archived by the owner on Jan 2, 2022. It is now read-only.

Trim Line Breaker removes components click and hover actions. #120

Closed
ThatGravyBoat opened this issue Nov 24, 2021 · 1 comment
Closed

Comments

@ThatGravyBoat
Copy link

ThatGravyBoat commented Nov 24, 2021

The trim line breaker config option uses a regex that can match anything that contains at least 1 letter and a hyphen right after therefore making it so if you send a message with a- it will remove the profile click action from the message. This also breaks links that contain a hyphen such as the reward-claim messages.

Here is an example:

What Hytilities sees a hyphen in.

TextComponent{text='', siblings=[TextComponent{text='Click the link to visit our website and claim your reward: ', siblings=[], style=Style{hasParent=true, color=§6, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}, TextComponent{text='https://rewards.hypixel.net/claim-reward/e321be5b', siblings=[], style=Style{hasParent=true, color=§b, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=ClickEvent{action=OPEN_URL, value='https://rewards.hypixel.net/claim-reward/e321be5b'}, hoverEvent=HoverEvent{action=SHOW_TEXT, value='TextComponent{text='Click to visit our website', siblings=[TextComponent{text='
', siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}, TextComponent{text='§7Opens §ehttps://rewards.hypixel.net/claim-reward/e321be5b §7on click.', siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}], style=Style{hasParent=false, color=§f, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}'}, insertion=null}}, TextComponent{text='
', siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}

What Hytilities changes it to:

TextComponent{text='§r§6Click the link to visit our website and claim your reward: §r§bhttps://rewards.hypixel.net/claim-reward/e321be5b§r§r', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
@ThatGravyBoat
Copy link
Author

Didnt see the other issue about this so ill reference it and close this #109

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant