io.netty.handler.codec.DecoderException: Failed to decode: No key value in MapLike[{action:"suggest_command"}]
Open
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 752
- Forks
- 307
- Avg merge
- 15h 48m
- Merged PRs (30d)
- 7
Description
Hello,
I got an issue while trying to send a player a message.
Example code to reproduce:
if(sender instanceof ProxiedPlayer) {
TextComponent component = new TextComponent("§aKlicke zum vorschlagen.");
component.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "testus"));
sender.sendMessage(component);
}
I use vanilla 1.20.4 as my client and waterfall build 562. I tried to use ClickEvent.Action.COPY_TO_CLIPBOARD, and this doesn't work too.
Does anybody know how to fix this?
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
Reproduce the failure using the supplied Java example with a vanilla 1.20.4 client and Waterfall build 562, testing both SUGGEST_COMMAND and COPY_TO_CLIPBOARD. Trace the resulting DecoderException and determine whether the reported click-event behavior can be corrected; done means the example no longer fails and both actions behave correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100