> For the complete documentation index, see [llms.txt](https://castle-siege.gitbook.io/castle-siege-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://castle-siege.gitbook.io/castle-siege-docs/installation-and-first-setup.md).

# Installation & First Setup

## Installation

{% stepper %}
{% step %}

### Download and install

1. Download the plugin and its dependencies are both bundled in `plugins.zip` [\[CLICK TO DOWNLOAD\]](https://www.spigotmc.org/resources/castle-siege-king-teams-kits-abilities-multi-arena-maps-more.115123/).
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`

Wait until WorldEdit confirms that the selection was copied.
{% endstep %}

{% step %}

### Finish the arena setup

* `/cse arena finish`

Do not move or change position until you receive the save confirmation.

The server may lag for a moment while the plugin saves the arena schematic. Make sure your WorldEdit selection includes the full arena area, including empty air spaces that should be restored during arena reset.
{% 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 %}
