> For the complete documentation index, see [llms.txt](https://docs.xandtech.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xandtech.fr/home/xplayercurrencies/features/death-penalty.md).

# Death Penalty

On death, takes a percentage off the player's **on-hand (wallet)** balance for a currency - their [bank](/home/xplayercurrencies/features/bank.md) balance is entirely separate storage and is never touched, no matter what.

```yaml
death-penalty:
  enabled: false
  percent: 10
  min-balance-to-apply: 0
```

| Key                    | Description                                                                                                                                                   |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `enabled`              | Off by default.                                                                                                                                               |
| `percent`              | Percentage of the wallet balance lost on death (0-100).                                                                                                       |
| `min-balance-to-apply` | Only applies if the player is carrying at least this much when they die. `0` (default) means always apply, down to whatever they're carrying, however little. |

## Bypass

A player with `xplayercurrencies.deathpenalty.bypass` (default: `op`, typically granted to staff) is never affected, regardless of this currency's settings.

## Chat notification

The player is told how much they lost and their new balance right after death - see the `death-penalty-applied` key in [the language file](/home/xplayercurrencies/configuration/languages.md).

Next: [Kill Coins](/home/xplayercurrencies/features/kill-coins.md).


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.xandtech.fr/home/xplayercurrencies/features/death-penalty.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
