# Vault

> **Info:**
Every option on this page is in config.yml and **Editor > Settings > Economy Hooks**. A change made by hand applies with /pcur reload, one made in the editor straight away.

## Vault

With [Vault](https://www.spigotmc.org/resources/vault.34315/) installed, one currency is offered as the server's economy, so shops, jobs and every other plugin that pays through Vault use it. The other currencies are reached through their own commands, [placeholders](../plugin-information/placeholders.md), the [API](../api/README.md) and the multi-currency hooks below.

Vault changes are logged in the [transaction log](transaction-log.md) like any other.

| Economy plugin API | What it gets | Needs |
| ------------------ | ------------ | ----- |
| Vault | The Vault currency and player accounts. No bank support. | Vault or VaultUnlocked |
| VaultUnlocked | Every currency and player accounts. Shared accounts are not supported. | VaultUnlocked |
| Treasury | Every currency and player accounts. Non-player accounts are not supported. | Treasury |
| ServiceIO | The Vault currency, player accounts | ServiceIO 2.5 or newer |

Each hook registers at the Vault Priority below and only when its plugin is installed.

## Towns and Other Non-Player Accounts

Plugins such as Towny and Lands keep money in accounts that are not players, by a name like `town-spawn` or a made-up UUID. Such an account is created the first time it is paid into or created through Vault, starts at 0 in every currency and is left out of leaderboards, rewards and `/pcur giveall all`. Its money still counts in the money supply.

## Vault Economy

Turns the Vault hook on or off. With it off, the VaultUnlocked hook is off too.

<figure><img src="../.gitbook/assets/settings/vault-economy.png" alt="" width="563"><figcaption><p>Economy Hooks (Vault Economy)</p></figcaption></figure>

## Vault Currency

The currency other plugins use through Vault and ServiceIO, and the default currency for VaultUnlocked and Treasury. `money` by default. When no currency has that id, Vault is not hooked and the console says so.

<figure><img src="../.gitbook/assets/settings/vault-currency.png" alt="" width="563"><figcaption><p>Economy Hooks (Vault Currency)</p></figcaption></figure>

## Vault Priority

How strongly the plugin claims Vault. It starts at `Low`, so an economy plugin you already run keeps Vault. Raise it above that plugin's to take over. The console says which economy Vault uses when it is not this one. Treasury gets the nearest of its three priorities.

<figure><img src="../.gitbook/assets/settings/vault-priority.png" alt="" width="563"><figcaption><p>Economy Hooks (Vault Priority)</p></figcaption></figure>

## VaultUnlocked

Offers every currency through VaultUnlocked. Its shared accounts are not supported.

<figure><img src="../.gitbook/assets/settings/vaultunlocked.png" alt="" width="563"><figcaption><p>Economy Hooks (VaultUnlocked)</p></figcaption></figure>

## Treasury

Offers every currency through Treasury. Non-player accounts are not supported. Treasury cannot create or delete currencies here, they are made in the editor.

<figure><img src="../.gitbook/assets/settings/treasury.png" alt="" width="563"><figcaption><p>Economy Hooks (Treasury)</p></figcaption></figure>

## ServiceIO

Offers the Vault currency through ServiceIO as its economy controller.

<figure><img src="../.gitbook/assets/settings/serviceio.png" alt="" width="563"><figcaption><p>Economy Hooks (ServiceIO)</p></figcaption></figure>

Source: https://www.phoenixplugins.com/docs/phoenix-currencies/features/vault