# Citizens NPC

A simple addon for *MyPet* that adds a trait to Citizens that allows pet-owners to store their pets.

Every *WorldGroup* has it's own storage so you can not transfer pets between *WorldGroup*s.

The Citizens **trait**s are called:

* `mypet-storage`  ->  MyPet Storage
* `mypet-wallet`  ->  Economy addon for the `mypet-storage` trait
* `mypet-shop`  ->  Pet shop

## Pictures

<img src="/files/-LXxfUU0DlrMa2Z25LPU" alt="" data-size="original"> <img src="/files/-LXxfX3_6-hh2HMTTR9l" alt="" data-size="original">&#x20;

## Commands

For all NPC commands you need to select a Citizens NPC before!

* `/petadmin npc wallet [`**`Private`**`/`**`Owner`**`/`**`Bank`**`/`**`None`**`]`
  * sets the account where the money will be transfered to
    * Owner and Bank need a name as a 2nd parameter
* `/petadmin npc shop <shop name>`
  * set the shop that will be opened by the selected NPC

## Permissions

The `MyPet.petstorage.limit.<limit>` permission is shared with by `/petstore` command and the **storage/shop trait**.

```
 - MyPet.npc.storage
 - MyPet.npc.shop

 - MyPet.petstorage.limit.<limit>
```


---

# 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/hooks/npc.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.
