Bad packet id 123

Discussion in 'Plugin Development' started by LIMPIX31, Aug 31, 2021.

  1. Offline


    target.sendPluginMessage(plugin, "myplugin:packetname", data.toString().getBytes(StandardCharsets.UTF_8));
    data is JSONObject converted to string

    When the command that sends this packet is executed, the player is thrown from the server with an error.
    Player lost connection: Internal Exception: io.netty.handler.codec.DecoderException: Bad packet id 123
    I'm using Paper server
  2. Offline


    You are sending a packet that the client can't deal with and so the player is kicked.
    You can't just send a random packet and expect things to work out; there's a protocol you have to adhere to.
  3. Offline


    Here's a list of valid packets:

Share This Page