# 💎Treasures

The **Treasures Module** allows server owners to configure loot rewards within mines. Players can receive treasures based on configurable probabilities, with optional daily limits to prevent excessive farming.

Admins can reset a player's daily limits using `/prisontreasures reset <player>`.

#### Global Configuration

The global settings define treasures that apply across all mines.

```
Global:
  Treasures:
    1:
      Chance: 0.99
      Daily: true
      Daily Limit: 10
      Commands:
        - "give <player> diamond 1"
```

* `Chance`: Probability of obtaining this treasure.
* `Daily`: Whether the loot has a daily limit. Resets midnight at local time.
* `Daily Limit`: The maximum number of times this treasure can be obtained per day.
* `Commands`: List of commands executed when a player finds the treasure.

#### Per-Mine Configuration

Each mine can have its own treasure settings.

```
Mines:
  Basic:
    Treasures:
      Diamonds:
        Chance: 100.0
        Daily: true
        Daily Limit: 100
        Commands:
          - "give <player> diamond 1"
```

* `Chance`: The probability of obtaining this treasure in the specific mine.
* `Daily`: Whether the loot has a daily restriction. Resets midnight at local time.
* `Daily Limit`: Maximum times a player can receive the treasure per day.
* `Commands`: The commands executed when a player receives the treasure.

#### Conclusion

The **Treasures Module** provides a structured way to reward players with items while ensuring balanced gameplay. By configuring drop rates and daily limits, you can prevent over-farming while keeping mining engaging for players.


---

# Agent Instructions: 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://wiki.vortexdevelopment.net/projects/vortexprisoncore/treasures.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.
