MyPet - Wiki
WebsiteDownloadSpigotDiscord
3.0
3.0
  • MyPet - Wiki
  • MyPet 3.0
  • Setup
    • Update to 3.0
    • Permissions
    • Commands
    • Configurations
      • config.yml
      • pet-config.yml
      • pet-shops.yml
      • hooks-config.yml
      • exp-config.yml
      • worldgroups.yml
      • Custom-Item-Data in Config
  • Systems
    • Translation
    • Leash Flags / Requirements
    • Skilltrees
      • Skilltree Requirements
      • SkilltreeCreator - Tool
    • Experience
      • Experience-Script
    • Pet Storage
    • Hunger-System
    • World Groups
    • Auto Updater
  • Skill Overview
    • Backpack
    • Beacon
    • Behavior
    • Control
    • Damage
    • Fire
    • Heal
    • Knockback
    • Life
    • Lightning
    • Pickup
    • Poison
    • Slow
    • Ranged
    • Ride
    • Shield
    • Sprint
    • Stomp
    • Thorns
    • Wither
  • Tutorials
    • How to get a pet
    • File to MySQL
    • File to MongoDB
  • Plugin-Hooks
    • Hook Types
    • Citizens NPC
    • WG Region Flags
    • PlaceholderAPI
    • BossShopPro
  • Default Settings
    • Pet-Config
  • Misc
    • MyPet-Premium
    • Is MyPet EULA compliant?
    • FAQ
    • Changelog
Powered by GitBook
On this page
  • How does it work?
  • How can I disable pets in certain worlds?
  • Installation
  • Configuration
  • Disable Worlds

Was this helpful?

  1. Systems

World Groups

PreviousHunger-SystemNextAuto Updater

Last updated 5 years ago

Was this helpful?

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

Changes made to the worldgroups.yml file will require a complete server restart. The reload command will not enforce these changes.

How does it work?

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

How can I disable pets in certain worlds?

Put the world(s) into a new world-group (you can all the group whatever you want, for example nopets). Then remove (or don't add) the leash form these worlds. Now no new pets can be created an no pets can enter this world.

Installation

The plugin will create the default World-group configuration file and adds every available world to the default World-group.

Configuration

Every world has to be in a World-group. You can create as many World-groups as you want as long as every world is in just one World-group.

Example configuration: With this configuration every player can have one pet in the normal worlds and 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
permissions