# Configuration

{% embed url="<https://youtu.be/9UpA__a6YrE>" %}
Avampost configuration video.
{% endembed %}

## 1. Define the Avampost region.

* Ensure you have **WorldGuard** installed.
* Set two positions using `//wand`.
* Define the region using the command: `/region define [name]`.
* Activate the avampost system by setting the flag with: `/region flag [name] avampost-system true`.

## 2. Define the Avampost File

* Duplicate the example "avamposto" (which refers to the OutPostID) provided in the initial file.
* Rename the `outpostID` to a unique identifier.
* Update the region to match the name you set up in the previous step.
* Update the MythicMobs entry with a mob that exists in your MythicMobs configuration.

Once done, you're ready to play and capture the Avampost!

## Setting up Avampost rewards:

Rewards are executed as console commands, allowing the use of the variable `%player%`:

* Execute `/avampost admin edit` and select "modify avampost".
* Choose the avampost you wish to modify and navigate to "Rewards".
* Click "Add new Reward" and input the desired console command (omit the initial '/').
  * Example: To send a message, input: `say %player% has conquered the Avampost!`

<figure><img src="https://3067097874-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJ9IRlbZGFV9BglNLT9MA%2Fuploads%2FQhxY6azi98ZdfSs77wPe%2F2023-08-07_17.41.49.png?alt=media&#x26;token=1a6441d8-7dfb-4023-bfdc-17f0ecabfed2" alt=""><figcaption><p>Avampost rewards editor menu</p></figcaption></figure>
