Bad packet id 123

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

Thread Status:
Not open for further replies.
  1. Offline

    LIMPIX31

    Code:
    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.
    Code:
    Player lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 123
    I'm using Paper server
     
  2. Offline

    Kars

    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

    Tim_M

    Here's a list of valid packets: https://wiki.vg/Protocol
     
Thread Status:
Not open for further replies.

Share This Page