Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

💴ManticCurrency

Mantic Development's Currency Minecraft Plugin

🛒 mantic.dev/product/manticcurrency - $7.99 🔐 Requires ManticLib (free) and supports from 1.8 upwards

Want to change the currency name? Simply change the command in the config.yml

Currency Plugin Overview

Introducing ManticCurrency, a powerful plugin that empowers server owners with the ability to create and manage their own custom currencies effortlessly. Whether you're looking to enhance your server's economy or gamify interactions, ManticCurrency offers a comprehensive suite of features to tailor your virtual economy to your liking.

Key Features of ManticCurrency

  • Built-in Economy & Shop (with categories): An economy which you can change the name of!

  • Compatibility: Works on a wide range of Minecraft versions starting from 1.8.

  • Discord Integration: Discord Webhook logging implemented within the plugin to monitor players!

  • Daily Currency: Incentives your players to log on daily by giving them currency!

  • Easy Setup: Intuitive commands and a user-friendly interface make it simple to get ManticCurrency up and running.

  • MySQL, SQLITE or JSON storage options.

  • API Events for Developers: CurrencyTransactionEvent & ShopTransactionEvent

Commands

Permissions are all configurable in your config.yml

📸 Media

Currency Transaction Discord Webhook Log
Shop Transaction Discord Webhook Log
Preview of our categories

Shop menus and pagination

ManticCurrency has two separate menu steps: the main menu lists categories, and each category has its own product menu. The Spin Wheel’s Rewards & Chances menu is separate from the shop.

Product pages in a shop category

Category files are stored in plugins/ManticCurrency/shops/. The store-items list contains the products. Set store-item-slot-key to one character to mark the layout slots that should be filled with products. Products are placed in the matching slots in store-items order. See the Shop menus and categories guide for the full setup steps.

For example, two rows of x give 18 products per page:

Add navigation items to the category’s items list. Put each button’s key in menu-layout, then set its action:

Button
Example key
Action

Previous page

p

[PREVIOUS_PAGE]

Next page

n

[NEXT_PAGE]

Back to categories

<

[BACK]

Each layout row must contain exactly nine characters. The number of product-slot characters sets the page size. With 18 slots, the next button appears only when the category has more than 18 products; the previous button appears after the first page. Leave store-item-slot-key empty to place products by their individual keys, as in the older layout style.

Create and edit categories with /currency editor (permission: mantic.currency.editor). After editing YAML files by hand, run /currency reload.

Spin Wheel reward pages

The Rewards & Chances menu is configured separately in plugins/ManticCurrency/spin_wheel.yml. rewards-slot-key marks reward slots in rewards-menu-layout; the default layout has 36 slots per page. Keep the keys for rewards-previous-page-item (<) and rewards-next-page-item (>) in the layout. See Config Files for how the menu files fit together.

The page buttons are connected automatically, so their action fields can remain empty. A next button appears only when there are more rewards than slots on one page. The default file has six sample rewards, so its first page has no next button until you add enough rewards to exceed 36. The previous button appears only after moving to a later page.

Changing the number of reward-slot characters changes how many rewards fit on a page. Keep each layout row nine characters long and make sure the previous/next item keys still appear in the layout.

Developer API notes

CurrencyAPI.getWalletAsync(UUID) returns a CompletableFuture<Wallet> for wallet reads. Synchronous getters and mutations such as removeBalance(...) and transfer(...) wait for their result, so SQL-backed calls can take time.

CurrencyAPI.removeBalance(UUID, amount, reason) returns false for a non-positive amount or insufficient balance. CurrencyAPI.transfer(sender, receiver, amount, reason) returns false for a non-positive amount, the same sender and receiver, insufficient sender balance, or receiver-balance overflow. When API events are enabled, either method also returns false if its transaction event is cancelled. A true transfer result means both the debit and credit completed.

API balance-change events are off by default. Set currency-api-calls-events: true in config.yml to make API calls fire CurrencyTransactionEvents; a transfer fires a sender TAKE event and receiver GIVE event, and cancelling either stops it. /currency pay fires its own PAY event. Handle database exceptions as well as a false result.

Last updated