# rewards.yml

```
'ID':
    slot: 22
    name: "&d&lReward VIP"
    time: 60
    cmds:
      # Supports PlaceholderAPI
      # [p] = execute from player
      # [c] = execute from console
      # [m] = send a message
      - '[p] me hi I''m {player} and I got {reward}'
      - '[c] say Nice, {player}!'
      - '[m] &cReward claimed successfully!'
    conditions:
      - '[exp_level] 5'
    locked:
      material: MINECART
      durability: 0
      amount: 1
      name: '&cLocked!'
      lore: # Supports PlaceholderAPI if installed!
        - ''
        - '&cLast claim: &e{claim_last_date}'
        - '&cNext claim: &e{claim_next_date}'
        - '&cRemain: &e{claim_next_remain}'
        - ''
    available:
      material: LEGACY_STORAGE_MINECART # bit.ly/spigotmaterials
      durability: 0
      amount: 1
      name: '&aAvailable!'
      lore: # Supports PlaceholderAPI if installed!
        - ''
        - '&a&lClick to claim your reward!'
        - ''
    need-condition: # Item to display if the reward need a permission and the user doesn't have it.
      material: LEGACY_STORAGE_MINECART # bit.ly/spigotmaterials
      durability: 0
      amount: 1
      name: '&c&lLocked!'
      lore: # Supports PlaceholderAPI if installed!
        - ''
        - '&c&lReward locked!'
        - '&cYou must have at least'
        - '&e5 xp level &cto unlock this reward!'
```

### ID

**Description:** The ID must be unique and can't contain spaces.

**Required value:** *TEXT*

**Default value:** 'credit'

### SLOT

**Description:** Reward item position in the GUI.

![Inventory slots numbers](/files/-M9PtLkC3c1zFxKBbsoh)

**Required value:** *NUMBER*&#x20;

### time

**Description:** Time between rewards. *(In seconds)*

**Required value:** NUMBER

**Default value:** 86400 (24 hours)

### cmds

**Description:** Commands to be run on reward claim.

* \[p] Means the command will be executed from the player.
* \[c] Means the command will be executed from the console.
* \[m] Sends a message to the player.

**Required value:** TEXT&#x20;

**Default value:**

```
cmds:
  - '[p] me hi I''m {player} and I got {reward}'
  - '[c] say Nice, {player}!'
  - '[m] &cReward claimed successfully!'
```

### conditions

**Description:** Conditions that must be met to claim the reward. Check out the [Condition Types page.](/deliveryman/condition-types.md)

**Required value:** *TEXT*

**Default value:**

```
conditions:
  - "[perm] deliveryman.rewards.vip-1"
```

### locked

**Description:** The item that is displayed when the reward is under cooldown.

**Required type:** *ITEM*

### **available**

**Description:** The item that is display when the reward is ready to be claimed.

**Required type:** *ITEM*

### need-condition

**Description:** The item that is display when the player doesn't met the conditions.

**Required type:** *ITEM*


---

# 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://fendt873.gitbook.io/deliveryman/configs-1/rewards.yml.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.
