# Player Respawned

#### Description

This event is triggered when a player respawns or is teleported

#### Parameters

```typescript
{ server: IServer, player: IPlayer, platform: GamePlatform }
```

#### Example

{% tabs %}
{% tab title="TypeScript" %}

```javascript
import { RCEEvent, type IPlayerRespawnedEventPayload } from "rce.js";

// ...

rce.on(RCEEvent.PlayerRespawned, (payload: IPlayerRespawnedEventPayload) => {
    console.log(`${payload.player.ign} has respawned in ${payload.server.identifier}`);
});
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const { RCEEvent } = require("rce.js");

// ...

rce.on(RCEEvent.PlayerRespawned, (payload) => {
    console.log(`${payload.player.ign} has respawned in ${payload.server.identifier}`);
});
```

{% endtab %}
{% endtabs %}
