> For the complete documentation index, see [llms.txt](https://headhunter-1.gitbook.io/headhunter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://headhunter-1.gitbook.io/headhunter/configurations/level-up-rewards-config-level-up-rewards.yml.md).

# Level Up Rewards Config (level-up-rewards.yml)

### File Location

```
plugins/HeadHunter/level-up-rewards.yml
```

***

### Global Settings

<table data-full-width="false"><thead><tr><th>Setting</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:$success;">LevelUpRewards.Enabled</mark></td><td>Boolean</td><td>true</td><td>Master switch to enable/disable all level up rewards</td></tr></tbody></table>

***

### Reward Fields

<table data-full-width="false"><thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:$success;">Message</mark></td><td>String</td><td>Message shown to the player when they receive the reward</td></tr><tr><td><mark style="color:$success;">Commands</mark></td><td>List</td><td>Commands executed when the player levels up</td></tr></tbody></table>

***

### Reward Structure

Each reward is defined under <mark style="color:$success;">LevelUpRewards.Rewards.\<MOB\_TYPE></mark> where <mark style="color:$success;">MOB\_TYPE</mark> matches the mob name in [Levels Config (levels.yml)](/headhunter/configurations/levels-config-levels.yml.md)

### Default Configuration

{% hint style="info" %}
You don't need to define rewards for every mob. Only create rewards for mobs where you want something special to happen. Mobs without rewards will still level up normally.
{% endhint %}

{% code expandable="true" %}

```yaml
# ################################# #
# HeadHunter Plugin by DisabledGoat #
# ################################# #

# LevelUpRewards Configuration:
# ------------------------------------
# This section defines rewards for players leveling up.
# 
# General Settings:
# - Enabled: Set to true to enable rewards, false to disable.
# 
# Rewards Section:
# - Define rewards for specific mob types (e.g., PIG, COW, WOLF).
# - Rewards are optional. You don't need to specify rewards for all mobs.
# - Mob names must match those in Levels.yml.
# 
# Reward Options:
# - Message: Custom message shown to the player.
# - Commands: Commands executed when the player levels up.
#   Only the {player} placeholder is supported, representing the player performing the command.
# 
# Example:
# - Rewards.PIG:
#     Message: "You received 100$ for leveling up from Pigs!"
#     Commands: ["eco give {player} 100"]
# 

Level-up-rewards:
  Enabled: true
  Rewards:
    PIG:
      Message: Your journey begins! Here's $500 to get you started.
      Commands:
      - eco give {player} 500
    CHICKEN:
      Message: Clucking impressive! Enjoy some roasted chicken and a cash bonus.
      Commands:
      - eco give {player} 5000
      - give {player} cooked_chicken 32
    ZOMBIE:
      Message: You've crossed into the undead ranks. $30,000 for your troubles!
      Commands:
      - eco give {player} 30000
    GUARDIAN:
      Message: The depths bow to you. A sponge and $60,000 — well earned.
      Commands:
      - eco give {player} 60000
      - give {player} sponge 4
    BLAZE:
      Message: You conquered the Nether's flame. $200,000 and fire resistance await!
      Commands:
      - eco give {player} 200000
      - give {player} fire_resistance 8
    WITHER_SKELETON:
      Message: A wither skull as a trophy — and $600,000 for your collection.
      Commands:
      - eco give {player} 600000
      - give {player} wither_skeleton_skull 1
    IRON_GOLEM:
      Message: MAXIMUM LEVEL REACHED! You are a true HeadHunter. $1,000,000 and an
        iron trophy await!
      Commands:
      - eco give {player} 1000000
      - give {player} iron_block 4

```

{% endcode %}

{% hint style="warning" %}
Mob names in this file <mark style="color:$warning;">MUST</mark> match the exact mob names defined in [<mark style="color:$warning;">Levels.yml</mark>](/headhunter/configurations/levels-config-levels.yml.md)<mark style="color:$warning;">.</mark> Case-sensitive!
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://headhunter-1.gitbook.io/headhunter/configurations/level-up-rewards-config-level-up-rewards.yml.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
