> For the complete documentation index, see [llms.txt](https://cozy-1.gitbook.io/dev-example2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cozy-1.gitbook.io/dev-example2/destroy-the-core/setup-guide.md).

# Setup Guide

#### Step 1:

Upload our plugin to the plugins folder found on your server. Proceed to placing your license in the configuration file (instructions: <https://docs.mantic.dev/welcome#how-can-i-claim-my-license>). Then, start up your server.

#### Step 2:

Open the configuration file located at `plugins/ManticDTC/config.yml` and review your core settings.

Here you can configure your primary storage option under `databaseType` (choose between JSON, SQLITE, or MYSQL). If you choose MYSQL, fill out the corresponding IP, username, password, and database fields.

📓 Notes: A server RESTART is strictly required if you change the database type or the main command label.

#### Step 3:

Join your server to physically set up your first Destroy The Core event block.

* Run `/dtc wand` to receive the configuration tool.
* Left-click the block in your world that you want to act as the core.
* Run `/dtc create <name> <breaks>` (e.g., `/dtc create Warzone 500`) to register the core location and set its required health.

📓 Notes: The plugin will automatically save this core into a dedicated file located at `plugins/ManticDTC/dtc/<name>.yml`.

#### Step 4:

Configure your event's specific rewards, schedules, and holograms. Navigate to `plugins/ManticDTC/dtc/` and open your newly created core's `.yml` file.

* Rewards: Under the `rewards` section, you can add new console commands to execute when a player wins. You can set `weight` for random chance, or set `alwaysDrop` to true for guaranteed loot.
* Schedule: Under the `schedule` section, define times using a 24-hour clock (e.g., `15:30`) for the event to start automatically.
* Holograms: Customize the `hologramLines` to change what floats above the core. Placeholders like `{breaks}` and `{max}` are fully supported here.

#### 🤖 Step 5 (Hologram Integration):

If you want floating text above your core block, you must ensure you have a supported hologram plugin installed on your server.

1. Install a Hologram Provider
   * Download either DecentHolograms or HolographicDisplays.
   * Place the jar into your server's plugins folder and restart.
2. Enable in Config
   * Ensure `hologramEnabled` is set to `true` inside your specific core's `.yml` file.
   * The plugin will automatically detect your hologram provider and spawn the tracking text above the block when the event starts.

#### Step 6:

Run `/dtc reload` in-game or from the console to refresh your files and apply your new rewards and schedules. You can now start the event manually by typing `/dtc start <name>`.
