# Player Unbanned

#### Description

This event is triggered when a player is unbanned from a server

#### Parameters

```typescript
{ server: IServer, admin?: string, ign: string }
```

#### Example

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

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

// ...

rce.on(RCEEvent.PlayerUnbanned, (payload: PlayerUnbannedEventPayload) => {
    console.log(`${payload.admin || "Unknown"} has unbanned ${payload.ign} from ${payload.server.identifier}`);
});
```

{% endtab %}

{% tab title="JavaScript" %}

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

// ...

rce.on(RCEEvent.PlayerUnbanned, (payload) => {
    console.log(`${payload.admin || "Unknown"} has unbanned ${payload.ign} from ${payload.server.identifier}`);
});
```

{% endtab %}
{% endtabs %}
