> For the complete documentation index, see [llms.txt](https://pm2plugins.gitbook.io/advancedcrates/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pm2plugins.gitbook.io/advancedcrates/crate-configurations/re-rolls.md).

# Re-rolls

Reward re-rolls - a feature allowing the crate opener on their choice open the crate again x amount of times in case their previous prize list wasn't satisfactory for them.

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"
```
