> For the complete documentation index, see [llms.txt](https://wiki.mypet-plugin.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.mypet-plugin.de/legacy/systems/multiworld.md).

# World Groups

To allows server owners to manage the worlds where players have the same pet, MyPet uses WorlGroups to combine different worlds together (or split them up). These groups are managed in the `worldgroups.yml` file.

## How does it work?

Every world is in a *WorldGroup* and every player can have one pet per *WorldGroup*, so players can have multiple pets on one server. The pet will switch automatically when the player changes the world and enters another *WorldGroup*.

## How can I disable pets in certain worlds?

Put the world(s) into a new worldgroup (you can all the group whatever you want, for example `nopets`). Then remove (or don't add) the leash [permissions](/legacy/setup/permissions.md) form these worlds. Now no new pets can be created an no pets can enter this world.

## Installation

The plugin will create the a default *WorldGroup* configuration file and adds every available world to the `default` *WorldGroup*.

## Configuration

Every world has to be in a *WorldGroup*. You can create as much *WorldGroups* as you want as long as every world is in just **one** *WorldGroup*.

Example configuration: With this configuration every player can have one pet in the normal worlds an one in the nether worlds

```
Groups:
  default:
  - normal
  - 2ndWorld
  nether:
  - normal_nether
  - 2ndWorld_nether
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.mypet-plugin.de/legacy/systems/multiworld.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
