> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/net/minecraft/network/client/c17packetcustompayload.md).

# C17PacketCustomPayload

Packet for sending custom plugin messages to the server

### Extends

* [`Packet`](/api/net/minecraft/network/packet.md)

### Constructors

#### Constructor

> **new C17PacketCustomPayload**(`channel`, `data`, `length`): `C17PacketCustomPayload`

Creates a new custom payload packet

**Parameters**

**channel**

`string`

The plugin message channel

**data**

`string`

The payload data as a string

**length**

`boolean`

Whether to include string length

**Returns**

`C17PacketCustomPayload`

**Overrides**

`Packet.constructor`

### Methods

#### getPacketID()

> **getPacketID**(): `string`

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](/api/net/minecraft/network/packet.md).[`getPacketID`](/api/net/minecraft/network/packet.md#getpacketid)
