---
title: Set Border Warning Delay
description: "Play 0x5B, server → client."
---

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

Sets how many seconds before the border reaches the player the warning tint starts. The server sends it when the border warning time changes.

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

## Fields

| Field | Type | Notes |
|---|---|---|
| `warningTime` | VarInt |  |

## Send it

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

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

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