> For the complete documentation index, see [llms.txt](https://falcona.gitbook.io/jails/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://falcona.gitbook.io/jails/configuration-and-customization/set-up-bail.md).

# Set up bail

Turn on Jails+ bail with Vault and test a pay-and-release.

Bail is Jails+ only. The plugin charges money through Vault. It does not run the `bail_command` or `refund_command` lines in `config.yml`. Those keys do nothing.

You need a Vault economy plugin that already works on the server.

{% stepper %}
{% step %}

## Confirm Vault works

Give a test player some money with your economy plugin. Check the balance. If Vault cannot see that balance, stop here and fix the economy plugin first.
{% endstep %}

{% step %}

## Set a default amount

In `config.yml`:

```yaml
general:
  def-bail-amount: 10000
```

Staff can override the amount per prisoner:

```
/jails bail set Steve 500
```

{% endstep %}

{% step %}

## Jail the test player and open the menu

```
/jails tempjail Steve spawnjail 1h bail-test
/jails bail gui
```

Pay the bail from the menu. Confirm the charge and the release.
{% endstep %}
{% endstepper %}

If unjail fails after Vault takes the money, Jails+ refunds the charge. A successful bail is not refunded.

Remove bail from a prisoner with `/jails bail remove Steve`.
