# File Structure

## Overview

Everything the plugin writes lives in plugins/PhoenixNPCs.

```
plugins/PhoenixNPCs/
├── npcs/
│   └── guide.yml
├── shops/
├── skins/
├── translations/
│   └── translations.en.yml
├── data/
│   └── database.db
├── backups/
├── groups.yml
└── config.yml
```

| File or Folder | Contents |
| -------------- | -------- |
| **npcs** | One file per NPC, named after its id. See [NPC File](npc-file.md). |
| **shops** | The trades of NPCs that have any, one file per NPC. Made with the first trade. |
| **skins** | Skin images for `file:` skins. See [Skins](../main-features/skins.md). |
| **translations** | The language file. See [Languages & Translations](languages.md). |
| **backups** | The [backups](../features/backups.md), plus a copy of config.yml taken before the plugin rewrote it. |
| **data/database.db** | How often each player used NPCs with [use limits](../main-features/cooldowns-and-limits.md). With MySQL or MariaDB storage the counts are shared in that database instead, see [Networks](../main-features/cooldowns-and-limits.md#networks). |
| **groups.yml** | The NPC groups. |
| **config.yml** | The main settings. See [Main Configuration](main-configuration.md). |

Everything about an NPC, its skin included, is in its file. The database only holds use counts.

## Moving to Another Server

Copy the whole folder. NPCs whose world does not exist on the new server wait until it loads, see [Why did my NPC not load?](../plugin-information/questions-and-answers/why-did-my-npc-not-load.md)

## What to Back Up

The plugin makes [backups](../features/backups.md) on its own. To keep a copy elsewhere, copy the whole plugins/PhoenixNPCs folder.

Source: https://www.phoenixplugins.com/docs/phoenix-npcs/configurations/file-structure