> 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/manticswords/captcha.md). Agents can also search and read this documentation through its [MCP server](https://docs.mantic.dev/~gitbook/mcp).

# Captcha

ManticSwords can ask a player to solve a captcha while grinding mobs. Configure it in `config.yml`; the in-game editor exposes the general switches under **General**.

```yaml
enable-captcha: true
captcha-chance: 10000
captcha-timeout-ticks: 1200
captcha-block-ticks: 1200
captcha-click-delay-ticks: 20
```

`captcha-chance` is the inverse chance — `10000` means roughly one captcha per 10,000 kills. `captcha-timeout-ticks` is how long the player has to answer, and `captcha-block-ticks` is the fallback tool-block duration. Both use ticks, so `1200` is one minute. Set `do-maths-captcha: true` for sums instead of item matching, and `kick-on-captcha-fail: true` to kick on failure.

## Click delay

`captcha-click-delay-ticks` gives the player time to stop clicking before an answer counts. The default `20` is one second; `0` accepts an immediate answer. This applies to maths and item captchas alike, and early clicks neither pass nor fail the captcha.

## Closing the menu

Closing an unanswered captcha no longer resets it. Reopening shows the same question, answers and item positions, and the original timeout keeps running — closing the menu gives no extra time.

## Punishment tiers

`captcha-punishments` replaces the single block duration with escalating tiers. The first tier whose `fail-range` matches the player's current consecutive fail count is used, so order them from lowest to highest:

```yaml
captcha-punishments:
  - fail-range: "1"
    block-ticks: 1200
  - fail-range: "2-3"
    block-ticks: 6000
  - fail-range: "4+"
    block-ticks: 18000
    extra-ticks-per-fail: 2400
```

`fail-range` accepts a single number (`"3"`), a range (`"2-4"`), or an open-ended range (`"5+"`). `extra-ticks-per-fail` adds more time for every fail past the start of the tier, which makes repeated failures progressively longer. Each tier can also set `kick`, `messages`, `player-commands` and `console-commands`; messages and commands support `{player}`, `{fails}` and `{time}`.

## Discord reporting

Failed captchas can be reported to a Discord webhook:

```yaml
captcha-discord-webhook: true
captcha-webhook-url: "https://discord.com/api/webhooks/XXXX/XXXX"
captcha-webhook-name: "Mantic Captcha"
captcha-webhook-avatar: "https://mantic.dev/logo.png"
```

The embed text and colour are configured under `captcha-embed`. Keep the webhook URL out of shared configuration files and screenshots.

## Staff commands

* `/manticsword captcha <player>` opens a captcha for an online player.
* `/manticsword captcha clear <player>` closes their active captcha and resets both the failure count and the tool-block cooldown. It also cancels any queued menu reopen or delayed kick. Clearing does not count as solving the captcha.

Both require `manticsword.captcha.force` and work only on online players.
