Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minedown generating abnormally excessive components during message file parsing with legacy selectors #22

Open
ApliNi opened this issue Sep 10, 2022 · 8 comments

Comments

@ApliNi
Copy link

ApliNi commented Sep 10, 2022

I came from a teleport plugin and the developer suggested that I submit an issue here.

WiIIiam278/HuskHomes#209

Used Version

HuskHome3.x.

Config

Config
[I think it should not be the configuration of HuskHome]

Environment description

Windows, Chinese.

Full Log

Log
[i didn't know they were there]

What other programs/plugins are you running?

HuskHomes.

What is happening?

MineDown messages I set: [§b[§a%1%§b]](show_text=§a/warp§b %1% run_command=/warp %1%).
In this plugin, it outputs these texts:
image

{"extra":[{"color":"aqua","text":"IpacEL "},{"color":"white","text":"\u003e "},{"color":"aqua","text":"服务器的地标 ["},{"color":"green","text":"1"},{"color":"gray","text":"/"},{"color":"green","text":"47  "},{"color":"aqua","text":"共"},{"color":"green","text":"77"},{"color":"aqua","text":"个]:\n"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 0"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 0"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"0"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 0"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 11"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 11"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"11"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 11"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 12"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 12"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"12"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 12"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 13"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 13"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"13"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 13"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 14"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 14"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"14"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 14"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 15"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 15"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"15"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 15"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 16"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 16"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"16"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 16"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 17"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 17"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"17"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 17"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 18"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 18"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"18"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 18"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 19"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 19"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"19"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 19"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 1"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 1"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"1"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 1"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 20"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 20"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"20"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 20"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 21"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 21"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"21"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 21"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 22"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 22"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"22"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 22"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 23"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 23"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"23"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 23"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 24"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 24"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"24"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 24"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 25"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 25"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"25"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 25"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 26"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 26"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"26"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 26"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 27"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 27"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"27"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 27"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 28"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 28"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"28"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 28"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 29"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 29"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"29"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 29"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 2"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 2"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"2"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 2"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 30"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 30"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"30"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 30"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 31"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 31"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"31"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 31"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 32"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 32"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"32"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 32"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 33"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 33"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"33"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 33"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 34"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 34"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"34"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 34"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 35"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 35"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"35"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 35"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 36"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 36"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"36"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 36"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 37"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 37"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"37"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 37"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 38"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 38"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"38"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 38"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 39"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 39"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"39"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 39"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 3"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 3"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"3"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 3"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 40"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 40"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"40"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 40"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 41"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 41"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"41"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 41"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 42"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 42"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"42"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 42"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 43"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 43"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"43"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 43"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 44"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 44"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"44"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 44"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 45"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 45"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"45"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 45"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 46"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 46"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"46"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 46"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 47"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 47"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"47"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 47"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 4"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 4"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"4"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 4"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 5"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 5"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"5"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 5"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 6"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 6"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"6"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 6"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 7"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 7"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"7"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 7"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 8"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 8"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"8"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 8"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":""},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 9"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"["},{"color":"green","clickEvent":{"action":"run_command","value":"/warp 9"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"9"},{"color":"aqua","clickEvent":{"action":"run_command","value":"/warp 9"},"hoverEvent":{"action":"show_text","contents":[{"text":"warp"}]},"text":"]"},{"color":"aqua","text":"\n"},{"color":"aqua","text":"IpacEL "},{"color":"white","text":"\u003e "},{"color":"gray","text":""},{"color":"gray","hoverEvent":{"action":"show_text","contents":[{"text":"上一页"}]},"text":"[\u003c-]"},{"color":"gray","text":" "},{"color":"gray","text":""},{"color":"#ffffff","clickEvent":{"action":"run_command","value":"/huskhomes:warplist 2"},"hoverEvent":{"action":"show_text","contents":[{"text":"下一页"}]},"text":"[-\u003e]"},{"color":"gray","text":" "},{"color":"white","text":"1"},{"color":"gray","text":"/"},{"color":"white","text":"2  "}],"text":""}

What did you expect to happen?

json text should be small and no loops.

Additional context

no output error.

@Phoenix616
Copy link
Owner

Phoenix616 commented Sep 10, 2022

Tbh. as far as I can tell the produced components look correct. The only thing that might be possible to improve is to not split different colors into different components with each having the same hover/click events applied but having them be the children of one parent element with those events.

But seeing as legacy formatting is, well, legacy I'm not too fond of spending too much time on supporting that use-case.

Things to try here are:

  1. Use the event-based formatting syntax instead of the legacy coloring and see if it produces shorter components (would be me guess that it does)
  2. Test minedown-adventure which might be a bit more modern and robust seeing as the development is now mainly focused on that. (HuskHomes seems to use the legacy BungeeCord components with the de.themoep:minedown:1.7.1-SNAPSHOT artifact)

@ApliNi
Copy link
Author

ApliNi commented Sep 10, 2022

I use this format for testing: [Text](color=#ff00ff).
Exactly 47, no repetitions.

{"extra":[{"color":"aqua","text":"IpacEL "},{"color":"white","text":"\u003e "},{"color":"aqua","text":"服务器的地标 ["},{"color":"green","text":"1"},{"color":"gray","text":"/"},{"color":"green","text":"47  "},{"color":"aqua","text":"共"},{"color":"green","text":"77"},{"color":"aqua","text":"个]:\n"},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":""},{"color":"#ff00ff","text":"Text"},{"color":"aqua","text":"\n"},{"color":"aqua","text":"IpacEL "},{"color":"white","text":"\u003e "},{"color":"gray","text":""},{"color":"gray","hoverEvent":{"action":"show_text","contents":[{"text":"上一页"}]},"text":"[\u003c-]"},{"color":"gray","text":" "},{"color":"gray","text":""},{"color":"#ffffff","clickEvent":{"action":"run_command","value":"/huskhomes:warplist 2"},"hoverEvent":{"action":"show_text","contents":[{"text":"下一页"}]},"text":"[-\u003e]"},{"color":"gray","text":" "},{"color":"white","text":"1"},{"color":"gray","text":"/"},{"color":"white","text":"2  "}],"text":""}

@Phoenix616
Copy link
Owner

Well you need to test with the hover/click event specified and with multiple colors inside the events, otherwise it's not comparable with your legacy formatting string.

@ApliNi
Copy link
Author

ApliNi commented Sep 10, 2022

I try to use this: [\\[](color=#000000) [%1%](color=#ff00ff show_text=&#ff00ff&/warp§b %1% run_command=/warp %1%) [\\]](color=#ffffff).

I'm not sure if it's correct, but the json is 16kb in size

{"extra":[{"color":"aqua","text":"IpacEL "},{"color":"white","text":"\u003e "},{"color":"aqua","text":"服务器的地标 ["},{"color":"green","text":"1"},{"color":"gray","text":"/"},{"color":"green","text":"47  "},{"color":"aqua","text":"共"},{"color":"green","text":"77"},{"color":"aqua","text":"个]:\n"},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 0"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 0"}]},"text":"0"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 11"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 11"}]},"text":"11"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 12"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 12"}]},"text":"12"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 13"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 13"}]},"text":"13"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 14"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 14"}]},"text":"14"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 15"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 15"}]},"text":"15"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 16"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 16"}]},"text":"16"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 17"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 17"}]},"text":"17"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 18"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 18"}]},"text":"18"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 19"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 19"}]},"text":"19"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 1"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 1"}]},"text":"1"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 20"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 20"}]},"text":"20"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 21"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 21"}]},"text":"21"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 22"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 22"}]},"text":"22"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 23"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 23"}]},"text":"23"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 24"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 24"}]},"text":"24"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 25"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 25"}]},"text":"25"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 26"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 26"}]},"text":"26"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 27"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 27"}]},"text":"27"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 28"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 28"}]},"text":"28"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 29"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 29"}]},"text":"29"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 2"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 2"}]},"text":"2"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 30"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 30"}]},"text":"30"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 31"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 31"}]},"text":"31"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 32"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 32"}]},"text":"32"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 33"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 33"}]},"text":"33"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 34"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 34"}]},"text":"34"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 35"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 35"}]},"text":"35"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 36"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 36"}]},"text":"36"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 37"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 37"}]},"text":"37"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 38"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 38"}]},"text":"38"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 39"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 39"}]},"text":"39"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 3"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 3"}]},"text":"3"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 40"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 40"}]},"text":"40"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 41"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 41"}]},"text":"41"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 42"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 42"}]},"text":"42"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 43"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 43"}]},"text":"43"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 44"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 44"}]},"text":"44"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 45"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 45"}]},"text":"45"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 46"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 46"}]},"text":"46"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 47"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 47"}]},"text":"47"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 4"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 4"}]},"text":"4"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 5"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 5"}]},"text":"5"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 6"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 6"}]},"text":"6"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 7"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 7"}]},"text":"7"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 8"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 8"}]},"text":"8"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":""},{"color":"#000000","text":"["},{"color":"aqua","text":" "},{"color":"#ff00ff","clickEvent":{"action":"run_command","value":"/warp 9"},"hoverEvent":{"action":"show_text","contents":[{"color":"#ff00ff","text":"/warp"},{"color":"aqua","text":" 9"}]},"text":"9"},{"color":"aqua","text":" "},{"color":"#ffffff","text":"]"},{"color":"aqua","text":"\n"},{"color":"aqua","text":"IpacEL "},{"color":"white","text":"\u003e "},{"color":"gray","text":""},{"color":"gray","hoverEvent":{"action":"show_text","contents":[{"text":"上一页"}]},"text":"[\u003c-]"},{"color":"gray","text":" "},{"color":"gray","text":""},{"color":"#ffffff","clickEvent":{"action":"run_command","value":"/huskhomes:warplist 2"},"hoverEvent":{"action":"show_text","contents":[{"text":"下一页"}]},"text":"[-\u003e]"},{"color":"gray","text":" "},{"color":"white","text":"1"},{"color":"gray","text":"/"},{"color":"white","text":"2  "}],"text":""}

@ApliNi ApliNi closed this as completed Sep 10, 2022
@ApliNi
Copy link
Author

ApliNi commented Sep 10, 2022

I tried using &#55ffff& and &b instead of §b, it still loops.
I don't know if it can be solved,

@Phoenix616 Phoenix616 reopened this Sep 10, 2022
@Phoenix616
Copy link
Owner

Phoenix616 commented Sep 10, 2022

Please don't close issues if thet haven't been fixed.

Also your event-based formatting string doesn't match up with the legacy one so comparing them is pointless.

Also I strongly suggest comparing the json generated by one warp entry instead of the whole list as that list contains way too much uneceesary repetition and makes it harder to spot the differences of the actual changed part.

@ApliNi
Copy link
Author

ApliNi commented Sep 10, 2022

Sorry, because the issue on the HuskHome side was closed.

I don't know how to edit the messages to make them match.

@Phoenix616
Copy link
Owner

I don't know how to edit the messages to make them match.

[\\[[%1%](green)\\]](aqua show_text=§a/warp§b %1% run_command=/warp %1%) would be one possible equivalent but I just tested this and apparently there is some other issue with stacking multiple event definitions inside each other that would need to be fixed for that to work properly.

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

No branches or pull requests

2 participants