> 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.mypet-plugin.com/setup-guide/getting-started/plugin-hooks/citizens-npc.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
