<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [WorldManager](./server.worldmanager.md) &gt; [setDefaultWorld](./server.worldmanager.setdefaultworld.md)

## WorldManager.setDefaultWorld() method

Sets the default world. This is the world players automatically join when they connect to the game.

**Signature:**

```typescript
setDefaultWorld(world: World): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

world


</td><td>

[World](./server.world.md)


</td><td>

The world to set as the default.


</td></tr>
</tbody></table>
**Returns:**

void

