# Permissions

```yaml
  - MyPet.admin
  - MyPet.command.info.other
  - MyPet.command.capturehelper
  - MyPet.command.release
  - MyPet.command.respawn
  - MyPet.command.name
  - MyPet.command.name.color
  - MyPet.command.switch
  - MyPet.command.store
  - MyPet.command.trade.offer.<MyPet-Type>
  - MyPet.command.trade.receive.<MyPet-Type>
  - MyPet.shop.access.<shopname>
  - MyPet.shop.storage
  - MyPet.petstorage.limit.<limit>
  - MyPet.leash.<MyPet-Type>
  - MyPet.skilltree.<skilltreename>
  
  - MyPet.experience.multiplier.250
  - MyPet.experience.multiplier.225
  - MyPet.experience.multiplier.200
  - MyPet.experience.multiplier.175
  - MyPet.experience.multiplier.150
  - MyPet.experience.multiplier.125
  
  - MyPet.npc.storage
  - MyPet.npc.shop
```

## Leash Permissions

The leash permission is the most important permission because it allows to take a mob on a lead. You can allow all types by using the wildcard `*` or you can allow only certain types to certain players as you want.&#x20;

{% hint style="warning" %}
This permission only allows to leash a certain mob but everything else a player can do with a pet has nothing to do with this permission
{% endhint %}

* `MyPet.leash.<Pet-Type-Name>`
  * `<Pet-Type-Name>` has to be replaced with a valid Pet-Type-Name or wildcard(`*`) to give permission for all Pet-Types.
  * allows to leash a pet of this Pet-Type.

{% tabs %}
{% tab title="Wildcard (\*)" %}

```yaml
  - MyPet.leash.*
```

{% endtab %}

{% tab title="All" %}

```yaml
  - MyPet.leash.Bat
  - MyPet.leash.Bee
  - MyPet.leash.Blaze
  - MyPet.leash.Cat
  - MyPet.leash.CaveSpider
  - MyPet.leash.Chicken
  - MyPet.leash.Cod
  - MyPet.leash.Cow
  - MyPet.leash.Creeper
  - MyPet.leash.Dolphin
  - MyPet.leash.Donkey
  - MyPet.leash.Drowned
  - MyPet.leash.ElderGuardian
  - MyPet.leash.Enderdragon
  - MyPet.leash.Enderman
  - MyPet.leash.Endermite
  - MyPet.leash.Evoker
  - MyPet.leash.Fox
  - MyPet.leash.Giant
  - MyPet.leash.Ghast
  - MyPet.leash.Guardian
  - MyPet.leash.Hoglin
  - MyPet.leash.Horse
  - MyPet.leash.Husk
  - MyPet.leash.Illusioner
  - MyPet.leash.IronGolem
  - MyPet.leash.Llama
  - MyPet.leash.MagmaCube
  - MyPet.leash.Mooshroom
  - MyPet.leash.Mule
  - MyPet.leash.Ocelot
  - MyPet.leash.Panda
  - MyPet.leash.Parrot
  - MyPet.leash.Phantom
  - MyPet.leash.Pig
  - MyPet.leash.Piglin
  - MyPet.leash.PigZombie
  - MyPet.leash.Pillager
  - MyPet.leash.PolarBear
  - MyPet.leash.Pufferfish
  - MyPet.leash.Rabbit
  - MyPet.leash.Ravager
  - MyPet.leash.Salmon
  - MyPet.leash.Sheep
  - MyPet.leash.Silverfish
  - MyPet.leash.Skeleton
  - MyPet.leash.SkeletonHorse
  - MyPet.leash.Slime
  - MyPet.leash.Snowman
  - MyPet.leash.Spider
  - MyPet.leash.Squid
  - MyPet.leash.Stray
  - MyPet.leash.Strider
  - MyPet.leash.TraderLlama
  - MyPet.leash.TropicalFish
  - MyPet.leash.Turtle
  - MyPet.leash.Vex
  - MyPet.leash.Villager
  - MyPet.leash.Vindicator
  - MyPet.leash.WanderingTrader
  - MyPet.leash.Witch
  - MyPet.leash.Wither
  - MyPet.leash.WitherSkeleton
  - MyPet.leash.Wolf
  - MyPet.leash.Zoglin
  - MyPet.leash.Zombie
  - MyPet.leash.ZombieHorse
  - MyPet.leash.ZombieVillager
  - MyPet.leash.ZombifiedPiglin
```

{% endtab %}
{% endtabs %}

## MyPet Permissions

* `MyPet.admin`
  * allows to:
    * open inventory of any pet.
    * open the inventory in creative mode/worlds.
    * switch skilltree as you want it.
    * access to *`/petadmin`* command.
* `MyPet.command.info.other`
  * allows to view pet info of other players with the *`/petinfo`* command.
* `MyPet.command.capturehelper`
  * allows to use the CaptureHelper.
* `MyPet.command.release`
  * allows to release your pet.
* `MyPet.command.name`
  * allows to rename your pet.
* `MyPet.command.name.color`
  * allows to use colors in pet-names.
* `MyPet.command.respawn`
  * allows to use the *`/petrespawn`* command to respawn your pet (needs Economy plugin).
* `MyPet.command.switch`
  * allows to use the *`/petswitch`* command to switch between pets.
* `MyPet.command.store`
  * allows to use the *`/petstore`* command to store pets.
* `MyPet.command.trade.offer.<MyPet-Type>`
  * allows to offer somebody your MyPet of type `<MyPet-Type>`
* `MyPet.command.trade.receive.<MyPet-Type>`
  * allows to offer somebody your MyPet of type `<MyPet-Type>`
* `MyPet.petstorage.limit.<limit>`
  * limits the amount of pets a player can store.
  * `<limit>` has to be replaced by a number between 1 and 54
    * must be less than the `Max-Stored-Pet-Count` value in [config.yml](https://wiki.mypet-plugin.de/setup/configurations/config.yml)
* `MyPet.shop.access.<shopname>`
  * allows to access a shop with the /petshop command
  * `<shopname>` needs to be replaced by a shop name
* `MyPet.shop.storage`
  * allows to buy pets to the storage so you don't have to store your pet before buying a new one
* `MyPet.skilltree.<skilltreename>`
  * `<skilltreename>` has to be replaced with the name of any existing skilltreename.
  * allows to use the `<skilltreename>` skilltree.
  * the names of the default skilltrees are: `Combat`, `Utility`, `PvP`, `Ride` & `Farm`
* `MyPet.npc.storage`
  * allows to interact with the `mypet-storage` Citizens trait
* `MyPet.npc.shop`
  * allows to interact with the `mypet-shop` Citizens trait
* `MyPet.experience.multiplier.`**`X`**
  * Allows the pets of this player to gain **`X`**% XP
  * For a full list of **`X`** see [list](https://wiki.mypet-plugin.de/setup/permissions) at the top op this page

## Extended MyPet Permissions

To use the extended permissions you need to activate them in the config (*`MyPet.Permissions.Extended`*). Extended permissions are supposed to be used as a feature blocker. That means that it only usefull to active them when you want to disable certain features in certain worlds like disable Inventory in creative worlds. All these permissions should be self explaining but remember, they are only supposed to disable these things.

```yaml
  - MyPet.extended.feed
  - MyPet.extended.beacon
  - MyPet.extended.behavior.friendly
  - MyPet.extended.behavior.aggressive
  - MyPet.extended.behavior.farm
  - MyPet.extended.behavior.raid
  - MyPet.extended.behavior.duel
  - MyPet.extended.inventory
  - MyPet.extended.ride
  - MyPet.extended.ride.fly
  - MyPet.extended.control
  - MyPet.extended.pickup
  - MyPet.extended.equip
  - MyPet.extended.nametag
```


---

# Agent Instructions: 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:

```
GET https://wiki.mypet-plugin.de/setup/permissions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
