PaperMC / PaperMC/Waterfall

io.netty.handler.codec.DecoderException: Failed to decode: No key value in MapLike[{action:"suggest_command"}]

Open
#842 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.