IntellectualSites / IntellectualSites/PlotSquared
`/plot info` Usage of MiniMessage by list item (Add preprocessed tags for click actions)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 653
- Forks
- 975
- Avg merge
- 2m
- Merged PRs (30d)
- 6
Description
Server Implementation
Paper
Server Version
1.19.4
Describe the bug
I would like to include a suggest-command in the player list of /plot info, but I do not get the expected conversion of the MiniMessage definition. In the suggest-command part, the <user> is not transferred to the username of the list item. The hover works and the <user> name is displaying too, but the suggest-command down't work here.
"info.plot_user_list": "<click:suggest_command:'<user>'><hover:show_text:'<gray>Copy user name'><white><user><gray></hover></click>",
To Reproduce
Changing the info.plot_user_list part of messages_en.json with the new message ->
"info.plot_user_list": "<click:suggest_command:'<user>'><hover:show_text:'<gray>Copy user name'><white><user><gray></hover></click>",
Usage of /plot info -> Owner, Added, Trusted player list
Expected behaviour
Screenshots / Videos
No response
Error log (if applicable)
No response
Plot Debugpaste
XXX
PlotSquared Version
PlotSquared 7.2.0
Checklist
- I have included a Plot debugpaste.
- I am using the newest build from https://www.spigotmc.org/resources/77506/ and the issue still persists.
Anything else?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue through /plot info using the info.plot_user_list message in messages_en.json. Trace how the list item is assembled and how MiniMessage click actions are processed; done means the suggest-command action uses the listed player's username while the existing hover text still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100