> 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/functions/spoofmanager.sendpacket.md).

# spoofManager.sendPacket

> **sendPacket**(`packet`, `event`): `void`

Sends a packet to the server.

### Parameters

#### packet

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

The packet to send.

#### event

`boolean`

Whether the packet is an event.

### Returns

`void`

### Remarks

Sending server packets to the server is in most cases a very good way to get yourself banned!
