<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Player](./server.player.md) &gt; [joinWorld](./server.player.joinworld.md)

## Player.joinWorld() method

Joins a player to a world.

**Signature:**

```typescript
joinWorld(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 join the player to.


</td></tr>
</tbody></table>
**Returns:**

void

## Remarks

If the player is already in a [World](./server.world.md)<!-- -->, they will be removed from their current world before joining the new world.

