# Re-rolls

Different amount of available re-rolls can be set up for different users based on permission hierarchy. There is a pre-made inventory that opens up with 3 available buttons - preview the currently won rewards, accept the won rewards and to re-roll the crate. The re-roll button has a custom message set to the item based on the users permission and if they have already reached their limit of re-rolling. NoPermLore configuration is used to specify that exact message (re-roll item's lore).

{% embed url="<https://youtu.be/EMNkCOPck7g>" %}
Re-rolls example
{% endembed %}

YAML code example of re-rolls:

```yaml
RerollSettings:
  RerollEnabled: true
  Rerolls:
    OneRerollRankExample:
      Permission: "VIP"
      Amount: 1
      NoPermLore: "&7Unavailable, you need to have at least the &a&lVIP &7Rank or win an additional reroll from the Master Crate to reroll one more time"
    CustomPermRerollExample:
      Permission: "Reroll.Two"
      Amount: 2
      NoPermLore: "&7Unavailable, you need to have the &e&lDonator &7Rank or win an additional reroll from the Master Crate to reroll one more time"
    AnotherRerollRankExample:
      Permission: "Donator"
      Amount: 3
      NoPermLore: "&7Unavailable, you need to have at least the &e&lDonator &7Rank to reroll one more time"
```


---

# 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://pm2plugins.gitbook.io/advancedcrates/crate-configurations/re-rolls.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.
