> 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/setup-guide/getting-started/plugin-hooks/citizens-npc.md).

# Citizens NPC

A MyPet feature adding a trait to Citizens that allows pet-owners to store their pets.

Every [world group](/setup-guide/getting-started/systems/world-groups.md) has its own storage so you cannot transfer pets between world groups.

The Citizens traits are called:

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

{% columns fullWidth="true" %}
{% column %}
![](https://2973673588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbDDqqkbXYyKdy88rOP6U%2Fuploads%2Fgit-blob-e9874ba07eb7e2927efa1f8cc09a1ed987fc8ca3%2Fimage?alt=media)
{% endcolumn %}

{% column %}
![](https://2973673588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbDDqqkbXYyKdy88rOP6U%2Fuploads%2Fgit-blob-67efcb06a24aa7385ac02d3f34dd523655315977%2Fimage?alt=media)
{% endcolumn %}
{% endcolumns %}

### Commands

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

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

### Permissions

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

* `MyPet.npc.storage`
* `MyPet.npc.shop`
* `MyPet.petstorage.limit.<limit>`


---

# 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/setup-guide/getting-started/plugin-hooks/citizens-npc.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.
