> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/pinnaprison/tools-and-items/autosell.md).

# Autosell

Autosell defines the **sell price** of every block and (optionally) sells a player's mined blocks automatically as they mine, paying multiple currencies at once. Configured in `autosell.yml`.

```yaml
autosell:
  permission: 'pinnaprison.autosell'  # players with this perm can toggle autosell
  enabled-by-default: false

summary:
  enabled: true
  interval: 60
  message:
    - '&e&lReward Summary: &6(60s)'
    - ' &a&l+ %pinnaprison_summary_money_formatted% &2Money'
    - ' &c&l+ %pinnaprison_summary_tokens_formatted% &4Tokens'

gains-format: '&a+{amount} {currency-name}'
gains-separator: '&7, '

items:
  stone:
    material: STONE
    name: '&7Stone'
    prices:
      money: 50
      tokens: 1
  diamond-ore:
    material: DIAMOND_ORE
    name: '&bDiamond Ore'
    prices:
      money: 1000
      tokens: 10
  beacon:
    material: BEACON
    name: '&bBeacon'
    prices:
      beacons: 1
```

## Settings

| Key                           | Description                                                           |
| ----------------------------- | --------------------------------------------------------------------- |
| `autosell.permission`         | Players with this permission can toggle autosell in the backpack GUI. |
| `autosell.enabled-by-default` | Whether new players have autosell on by default.                      |
| `gains-format`                | How a single currency gain renders (`{amount}`, `{currency-name}`).   |
| `gains-separator`             | Placed between multiple currency gains.                               |

## Summary message

When autosell is on, a periodic summary is sent.

| Key                | Description                                                                                       |
| ------------------ | ------------------------------------------------------------------------------------------------- |
| `summary.enabled`  | Whether the summary message is sent.                                                              |
| `summary.interval` | Seconds between summaries; the counters reset each time.                                          |
| `summary.message`  | The message. Use `%pinnaprison_summary_<currency>%` for the amount earned since the last summary. |

## Sell prices (`items`)

Each entry maps a **material** to one or more currency prices. The entry key is just an id; `material` is the block; `name` is its display name; `prices` is currency → price per block.

```yaml
items:
  iron-ore:
    material: IRON_ORE
    name: '&fIron Ore'
    prices:
      money: 300
      tokens: 4
```

A single block can pay **several** currencies at once (e.g. Money **and** Tokens).

## Usage

* **`/sellall`** — sell the whole backpack at these prices.
* Toggle autosell from the **backpack GUI** (requires the `autosell` permission).

{% hint style="info" %}
Bombs, drills and autominers each have an `affect-autosell` option that decides whether the blocks **they** break also go through autosell / the backpack.
{% endhint %}


---

# 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:

```
GET https://edseries-plugins.gitbook.io/p/pinnaprison/tools-and-items/autosell.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
