# Homepage

## Installation

{% stepper %}
{% step %}

### Download and install

1. Download the plugin and its dependencies are both bundled in `plugins.zip` [\[CLICK TO DOWNLOAD\]](https://drive.google.com/drive/folders/1724dPbUTkLOP7hQg86hhpylAE1U09MRk).
2. Put the `.jar` files into your server `plugins/` folder.
3. Maps are included with the download aswell an `arena.zip`, extract it into your **main server folder**.
4. Start/Restart your server.
   {% endstep %}
   {% endstepper %}

***

## Setup Guide

{% hint style="warning" %}
If you find this tutorial confusing, please watch the video tutorial: <https://youtu.be/vcgLJUzd73k>
{% endhint %}

{% stepper %}
{% step %}

### Set the main lobby

To set the global lobby where players will be teleported when they leave arena \
Run:

* `/cse setlobby`

You need **OP** or the **cs.admin** permission.
{% endstep %}

{% step %}

### Import the arena world

1. Import the arena world (example world name: `arena`):
   * `/mv import arena normal`
2. Teleport to the world to verify it loaded:
   * `/mv tp arena`
     {% endstep %}

{% step %}

### Create a new arena

* Create the arena:
  * `/cse arena create <arenaname>`
* Example:
  * `/cse arena create arena1`
* Set the arena waiting lobby (while inside the arena world on the position where you stand):
  * `/cse arena setlobby`
    {% endstep %}

{% step %}

### Set player spawns

Set the spawns for each role (while inside the arena world on the position where you stand):

* `/cse arena setking`
* `/cse arena setdefenders`
* `/cse arena setattackers`
  {% endstep %}

{% step %}

### Select regeneration area

1. Get the FAWEWorldEdit wand:
   * `//wand`
2. Select positions:
   * Left click = first position
   * Right click = second position
3. Copy selection (this will copy selected area and save it into schematic which will later be used for regeneration of the terrain):

* `//copy`
  {% endstep %}

{% step %}

### Finish the arena setup

* `/cse arena finish`
  {% endstep %}

{% step %}

### Extra settings (optional)

You can change more settings in these files:

* `arenas.yml`
* `config.yml`
* `scoreboards.yml`
* `messages.yml`
  {% endstep %}
  {% endstepper %}

***

{% hint style="success" %}
:star::star::star::star::star:

If everything works fine, feel free to leave a nice comment with a **5 star rating**.\
If you found any bugs or errors, please **don’t leave a bad review,** just message me on discord cbhud.
{% endhint %}


---

# 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://castle-siege.gitbook.io/castle-siege-docs/homepage.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.
