---
title: Player Combat End
description: "Play 0x42, server → client."
---

`play` · `0x42` · **clientbound** (server → client)

Tells the client that its combat with an entity has ended after `duration` ticks. The vanilla client does not do anything with it; it exists for legacy combat tracking. Servers send it when the player leaves combat.

Sent by the server, read by the client. Listen for it with `client.on("PlayerCombatEnd", (data) => …)` on the receiving side.

## Fields

| Field | Type | Notes |
|---|---|---|
| `duration` | VarInt |  |

## Send it

```ts
await client.sendPacket("PlayerCombatEnd", {
  duration: /* VarInt */,
});
```

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: [`src/Core/Versions/776/Packets/play/clientbound/PlayerCombatEnd.ts`](https://github.com/GDLev/mc-protocol/blob/master/src/Core/Versions/776/Packets/play/clientbound/PlayerCombatEnd.ts)
