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

# Frequently Asked Questions

Answers to common ManticCurrency setup, shop, rewards, and API questions.

## Where do shop categories and products go?

`main-menu.yml` controls the category-selection menu. Each category has its own file under `plugins/ManticCurrency/shops/`; that file controls its products, layout, and navigation. `spin_wheel.yml` controls the Spin Wheel and its Rewards & Chances menu. See the [Shop menus and categories guide](https://docs.mantic.dev/manticcurrency/config-files/currency-shop.yml) and [Config Files](https://docs.mantic.dev/manticcurrency/config-files).

## How do I create or edit a category?

Run `/currency editor` in game to open the category selector, then choose a category or the create option. To open a specific existing category directly, use `/currency editor <category-id>`. The default permission is `mantic.currency.editor`.

To make a main-menu item open a category, give it an action such as `[MENU] example`, where `example` is the category ID. Do not include angle brackets around the ID.

## Why is the shop’s next-page button missing?

Shop pagination is optional. In the category file, `store-item-slot-key` must be set to a character that appears in `menu-layout`. The matching characters are the product slots. The previous and next buttons must also have keys in the layout and actions `[PREVIOUS_PAGE]` and `[NEXT_PAGE]`.

A next button is shown only when there are more products than fit on one page. For example, two rows of `x` provide 18 slots, so 18 or fewer products fit on one page. A previous button appears only after the player moves to a later page. If the slot character is missing from the layout, the category cannot open; check the server log and `msg-menu-unavailable` in `config.yml`.

## Why is there no next page in Rewards & Chances?

The wheel’s rewards menu has its own settings in `spin_wheel.yml`. The default layout has 36 reward slots per page, while the default rewards list contains six sample rewards. That means no next-page button is expected until the rewards list has more than 36 entries.

Check that `rewards-slot-key` matches the reward-slot characters in `rewards-menu-layout`. The `<` and `>` keys for the previous and next items must also appear in that layout. The wheel connects these buttons automatically; their `action` fields can stay empty. The previous button appears only after page one.

## What is the difference between the two slot-key settings?

`store-item-slot-key` pages products in a shop category file. `rewards-slot-key` pages rewards in the Spin Wheel’s Rewards & Chances menu. They are configured separately and do not affect each other.

## Where do I change the menu or transfer error messages?

Edit the top-level `msg-menu-unavailable` and `msg-transaction-failed` values in `config.yml`, then run `/currency reload`. The first is shown when a menu cannot open. The second is shown when `/currency pay` cannot complete a transfer.

## Which API method should I use for wallet reads and transfers?

`CurrencyAPI.getWalletAsync(UUID)` returns a future and is the better choice when a SQL read must not block the caller. Synchronous wallet getters and `CurrencyAPI.transfer(...)` wait for their result; handle database exceptions as well as ordinary `false` results.

`CurrencyAPI.transfer(sender, receiver, amount, reason)` returns `true` only when the sender’s debit and receiver’s credit both complete. It returns `false` for a non-positive amount, sending to the same player, insufficient balance, or a receiver balance that would overflow.

By default, API calls do not fire `CurrencyTransactionEvent`s. Set `currency-api-calls-events: true` in `config.yml` if another plugin needs to listen for them. A transfer then fires a sender debit event and a receiver credit event, and cancelling either rejects it. `/currency pay` separately fires a `PAY` event.

## What should I include if startup fails?

Read the `[ManticCurrency] Startup failed: ...` line and the error lines immediately above it. Include the surrounding startup log when asking for help, but remove the `license-key`, database passwords, and Discord webhook URLs first. After correcting the cause, restart the server.
