# Reclaim

Many servers wish to offer a /reclaim option for ranked players to gain back previously bought keys and in gam items from the past purchase. You can do this with the reclaim section of the plugin&#x20;

```
  reclaim:
    Enabled: true
    BeginAtIndex: 6 # Display Output
    permissions:
      'group_dragon':
      - 'bundle give %player% DragonReclaim 1'
      'group_king': 
      - 'bundle give %player% KingReclaim 1'  
      'group_wizard':
      - 'bundle give %player% WizardReclaim 1'
      'group_goblin':
      - 'bundle give %player% GoblinReclaim 1' 
```

{% tabs %}
{% tab title="Permissions" %}
Given YAML files use the "." key as permissions, it is not possible to use this within the configuration.

To combat this, change the period character to an underscore when placing your variables as the keys. This allows you to use default permissions which groups already have.&#x20;

In the example above, all Dragon rank members would have the group.dragon permission. To use this with our reclaim, it becomes "group\_dragon". ServerTools will correctly swap the underscore back to a period as needed.
{% endtab %}

{% tab title="BeginAtIndex" %}
This is the index at which the command will print the values of the Reclaim prize based on the permissio&#x6E;**.**&#x20;

As seen above, "**group\_**&#x64;ragon" - we do not want to show this to the user upon claiming. By beinging the index at 6 we skip the "group\_" value and only show DRAGON to them.

It is advised to leave this at 6 if you are using Luckperms group permissions. If not, change to 0 and increase as needed

![Reclaim Bundle](https://3587441816-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MlVSGQhvRU_46OSdRLS%2F-MlVov6hVm1C-GUhJfyg%2F-MlVp-ZlxaMSWMNlG_eN%2Fimage.png?alt=media\&token=3279be68-21a4-438c-97d6-83ae49cb9784)
{% endtab %}
{% endtabs %}

&#x20;
