> For the complete documentation index, see [llms.txt](https://wiki.mypet-plugin.com/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.com/mypet-3/setup/configurations/hooks-config.yml.md).

# hooks-config.yml

Plugin Hook Configuration

MyPet hooks into a lot of plugins ([list](/mypet-3/hooks.md)). Some of these hooks simply makes MyPet compatible with some plugins and other have custom settings you can change.

The table below shows only the custom settings.

| **Hooks Settings**   |   Type  |                                                                                                                                                                                                                    Description |
| -------------------- | :-----: | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| **Hooks:**           |         |                                                                                                                                                                                                                                |
| AncientRPG:          | boolean |                      Checks whether the MyPet-owner can attack a target player following the rules of the AncientRPG plugin like **parties**. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| Towny:               | boolean |                                            Checks whether the MyPet-owner can attack a target player following the rules of the Towny plugin. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| MCMMO:               | boolean |                           Checks whether the MyPet-owner can attack a target player following the rules of the MCMMO plugin like **parties**. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| Factions:            | boolean |                                         Checks whether the MyPet-owner can attack a target player following the rules of the Factions plugin. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| Heroes:              | boolean | Checks whether the MyPet-owner can attack a target player following the rules of the Heroes plugin like **minimum PvP level** or **parties**. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| WorldGuard:          | boolean |                        Checks whether the MyPet-owner can attack a target player following the rules of the WorldGuard like **region flags**. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| Residence:           | boolean |                                               Checks whether the MyPet-owner can attack a target player following the rules of the Residence. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| GriefPrevention:     | boolean |                                         Checks whether the MyPet-owner can attack a target player following the rules of the GriefPrevention. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| PvPManager:          | boolean |                                              Checks whether the MyPet-owner can attack a target player following the rules of the PvPManager. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| Citizens:            | boolean |                                                                                                                                                Checks whether the target NPC can be damaged by a MyPet. NPCs can't be leashed. |
| **MobArena:**        |         |                                                                                                                                                                                                                                |
| Enabled:             | boolean |                                                                                                                                                      Enables the MobArena hook. (This allows the pet to deal damage in arenas) |
| RespectPvPRule:      | boolean |                                                                                       If `true` pets will respects the PvP rules of an arena. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| AllowPets:           | boolean |                                                                                                                                                                                   If `true` pets will be able to enter arenas. |
| **Minigames:**       |         |                                                                                                                                                                                                                                |
| DisablePetsInGames:  | boolean |                                                                                                                                                                                    Disables MyPets in any minigame completely. |
| **PvPArena:**        |         |                                                                                                                                                                                                                                |
| PvP:                 | boolean |                                                                    Checks whether the MyPet-owner can attack a target player inside an arena. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| DisablePetsInArena:  | boolean |                                                                                                                                                                                      Disables MyPets in the arenas completely. |
| **SurvivalGames:**   |         |                                                                                                                                                                                                                                |
| PvP:                 | boolean |                                                       Checks whether the MyPet-owner can attack a target player inside a survival game match. If the owner of a pet can attack a player, the MyPet can attack this player too. |
| DisablePetsInGames:  | boolean |                                                                                                                                                                           Disables MyPets in survival game matches completely. |
| **MyHungerGames:**   |         |                                                                                                                                                                                                                                |
| DisablePetsInGames:  | boolean |                                                                                                                                                                           Disables MyPets in survival game matches completely. |
| **BattleArena:**     |         |                                                                                                                                                                                                                                |
| DisablePetsInArena:  | boolean |                                                                                                                                                                                      Disables MyPets in the arenas completely. |
| **Vault:**           |         |                                                                                                                                                                                                                                |
| Economy:             | boolean |                                                                                                                                                     Enables the economy support. Used by trading, respawning and storing pets. |
| **SkillAPI:**        |         |                                                                                                                                                                                                                                |
| GrantExp:            | boolean |                                                                                                                                                          This setting allows pets to gain XP when the owner gains SkillAPI XP. |
| Disable-Vanilla-Exp: | boolean |                                                                                               This setting disables XP gain of normal sources at all. The only way pets can get any XP is when the owner gets XP via SkillAPI. |


---

# 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.com/mypet-3/setup/configurations/hooks-config.yml.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.
