> For the complete documentation index, see [llms.txt](https://docs.mantic.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mantic.dev/devilenchants/getting-started.md). Agents can also search and read this documentation through its [MCP server](https://docs.mantic.dev/~gitbook/mcp).

# Getting Started

## Install

1. Install DevilEnchants and **ManticLib 1.0.54.0 or newer** in your server's `plugins` folder. Choose the ManticLib build matching your server and Java version; Java 8 servers use its legacy build. DevilEnchants supports Minecraft 1.8–26.3.
2. Start the server to generate `plugins/DevilEnchants/`.
3. Enter your license in `config.yml` and restart. Keep license keys private.
4. Run `/de` to open the player shop, or `/de editor` to configure the plugin.

## Upgrading from 1.x

Back up `plugins/DevilEnchants/` before updating. Your configuration files and player data carry over; new settings are added with their defaults.

* **ManticLib 1.0.54.0 or newer is required.** Use its legacy build on Java 8.
* **`use-rarity-menu` now defaults to `true`.** On an existing server `/de` opens the rarity shop after updating — set `use-rarity-menu: false` in `config.yml` to keep the classic shop.
* **Existing enchants stay at max-level 1**, so they remain single-tier until you raise tiers in `/de editor` → **Enchant Manager** → **Tiers & Scaling**.
* **Fresh installs use 85% book success** and start with equipment destruction disabled. Existing `success-rate` values are kept.
* **Changing command aliases** still requires a full restart.

## Your first enchant

Fresh configs open the rarity shop. Left-click a rarity to preview its books; right-click to purchase a random book using **XP points**, not XP levels.

Close the shop, pick up the book, and left-click compatible equipment in your own inventory. The book shows its enchant, tier, rarity, and application success chance.

Fresh enchant settings use **85% book success**. Failed applications consume the book by default, while equipment destruction is **disabled**. Enable destruction separately if desired and offer White Scrolls to protect equipment.

## Useful commands

| Command                                        | Purpose                                                      |
| ---------------------------------------------- | ------------------------------------------------------------ |
| `/de`                                          | Open the player shop                                         |
| `/de scrolls`                                  | Open the scroll shop                                         |
| `/de editor`                                   | Open the admin editor (`/de edit` and `/de config` work too) |
| `/de list`                                     | List registered enchants                                     |
| `/de give <player> <enchant> <level> [amount]` | Give an enchant book                                         |
| `/de givescroll <player> <type> [amount]`      | Give scrolls                                                 |
| `/de reload`                                   | Reload file changes                                          |
| `/dedisenchant`                                | Open the disenchanter                                        |
| `/enchantmerger`                               | Open the book merger                                         |

For `/de givescroll`, `<type>` is `black` or `white` and the amount ranges from 1 to 64 (default 1). Giving books and scrolls requires `devilenchants.give`.

Aliases are configurable. Changing command aliases requires a full restart.

## Admin permissions

* `devilenchants.editor`: editor access; operators have it by default.
* `devilenchants.give`: give books and scrolls.
* `devilenchants.reload`: reload configuration.
* `devilenchants.menu.bypasspreview`: admin test rewards from rarity rolls without an XP charge. Reserve this for administrators.

Editor changes save immediately. Existing saved values are preserved when updating; use the editor to opt an established server into the new shop mode or success rates.
