hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
14 lines (8 loc) • 578 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [PlayerManager](./server.playermanager.md) > [worldSelectionHandler](./server.playermanager.worldselectionhandler.md)
## PlayerManager.worldSelectionHandler property
Optional handler for selecting the world a newly connected player joins. Returning no world results in the player joining the default WorldManager world.
**Signature:**
```typescript
worldSelectionHandler?: (player: Player) => Promise<World | undefined>;
```