Описание
# Private Vault
A powerful and flexible personal storage mod for Fabric servers that gives each player access to up to 100,000 private vaults!
## Features
**Massive Storage** — Each player can have up to 100,000 personal vaults
**Private & Secure** — Vaults are completely private to each player
**Double Chest Size** — Each vault has 54 slots (6 rows)
**Configurable Limits** — Admins can set global and per-player vault limits
**Persistent Storage** — All vaults save to the world folder and survive restarts
**Easy to Use** — Simple `/pv` command to access any vault
**Per-Player Customization** — Give different players different vault limits
**Admin Vault Viewer** — Admins can open and inspect any player's vault directly
## Commands
### Players
| Command | Description |
|---|---|
| `/pv ` | Open one of your vaults |
### Admins (Requires OP)
| Command | Description |
|---|---|
| `/pvconfig` | Show help and all available options |
| `/pvconfig default` | Show the current default vault limit |
| `/pvconfig default ` | Set the default vault limit for all players |
| `/pvconfig get ` | Check a player's current vault limit |
| `/pvconfig set ` | Set a custom vault limit for a player |
| `/pvconfig reset ` | Remove a player's custom limit, revert to default |
| `/pvconfig view ` | Open and inspect a player's vault |
## Admin Vault Viewer
`/pvconfig view ` opens any player's vault directly in your GUI. The title shows whose vault you're viewing (e.g. `Steve's Vault #3`) so there's no confusion. Any changes you make are saved back to the vault owner. The target player does **not** need to be online — vaults are stored by UUID.
## Installation
1. Install [Fabric Loader](https://fabricmc.net/use/)
2. Install [Fabric API](https://modrinth.com/mod/fabric-api)
3. Drop Private Vault into your `mods` folder
4. Start your server
## Configuration
The mod stores two things:
- `config/private-vault.json` — default vault limit and per-player overrides (managed via `/pvconfig`)
- `world/data/private_vaults.dat` — all vault item data, saved in the world folder
Both are managed automatically. You don't need to edit files manually.
## Permissions
- **Players** — can open their own vaults up to their configured limit
- **Operators** — can configure limits and view any player's vault
## Use Cases
- **Survival** — give players expandable storage as they progress
- **Creative** — unlimited storage for builders
## FAQ
**Do vaults persist after a server restart?**
Yes. All vault data is saved to `world/data/private_vaults.dat` and loaded on startup.
**Can other players access my vaults?**
No. Vaults are private to each player. Only server operators can view them via `/pvconfig view`.
**What happens if a player's limit is lowered?**
They can't open vaults above their new limit, but the items are safe. Raise the limit again and everything is still there.
**Does the target player need to be online for `/pvconfig view`?**
No. Vaults are stored by UUID so offline players' vaults are fully accessible to admins.
**Is this server-side only?**
Yes. Clients do not need the mod installed.
**Does it work in singleplayer?**
Yes.
## License
This mod is licensed under MIT.