hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 762 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [WorldManager](./server.worldmanager.md) > [getWorldsByTag](./server.worldmanager.getworldsbytag.md)
## WorldManager.getWorldsByTag() method
Gets all worlds with a specific tag.
**Signature:**
```typescript
getWorldsByTag(tag: string): World[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
tag
</td><td>
string
</td><td>
The tag to get the worlds for.
</td></tr>
</tbody></table>
**Returns:**
[World](./server.world.md)<!-- -->\[\]
All worlds with the provided tag.