MyPet - Wiki
WebsiteDownloadSpigotDiscord
Legacy
Legacy
  • MyPet - Wiki
  • MyPet-Premium
  • Setup
    • Permissions
    • Commands
    • Configurations
      • config.yml
      • pet-config.yml
      • pet-shops.yml
      • Custom-Item-Data in Config
  • Systems
    • Leash Flags / Requirements
    • Skilltrees
      • SkilltreeCreator - Tool
    • Experience
      • Experience-Script
    • MyPet 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
  • Misc
    • 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

Was this helpful?

  1. Systems

World Groups

PreviousHunger-SystemNextAuto Updater

Last updated 6 years ago

Was this helpful?

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