World Groups

Last updated 14 days ago

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 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

Disable Worlds

You can also disable world where MyPet will not be active. This world cannot be in a world group.The config is also in the worldgroups.yml:

Disabled:
- example_world