> For the complete documentation index, see [llms.txt](https://pondwadermc.gitbook.io/cubed-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pondwadermc.gitbook.io/cubed-api/documentation/api/player/tntwars-1.md).

# bedwars

This method is used to retrieve bedwars information for a player on CubedCraft.

**.bedwars(UUID)**

Get bedwars information for a player on CubedCraft.

| Parameter | Type   | Required | Description                              |
| --------- | ------ | -------- | ---------------------------------------- |
| UUID      | string | true     | The UUID of the player you want info for |

**Example:**

```javascript
// Dependencies
const CubedCraft = require('cubed-api');

// Getting the player info
CubedCraft.API.player.bedwars('4de211d9-2e6d-41a8-830f-c20ba2359654').then(info => {
    console.log(info);
})
```

{% hint style="warning" %}
You can easily get a player's UUID with the [.playerUUID()](https://pondwadermc.gitbook.io/cubed-api/documentation/utils/playeruuid) method, view the documentation here: <https://pondwadermc.gitbook.io/cubed-api/documentation/utils/playeruuid>
{% endhint %}

**Example Response:**

```javascript
{
  player: {
    uuid: '4de211d9-2e6d-41a8-830f-c20ba2359654',
    username: 'PondWader',
    coins: 33,
    kills: 8,
    deaths: 24,
    wins: 1,
    score: 33,
    beds: 3,
    first_joined: 1584033856293,
    last_joined: 1584033856293,
    playtime: 0
  }
}
```
