Creating a Currency
This guide provides step-by-step instructions on creating and configuring new currencies .
Overview
This guide provides step-by-step instructions on creating and configuring new currencies for your Minecraft server using the currency system. Each currency has a central configuration file and required denomination files to define its behavior and appearance. With this system, server owners can create unlimited currencies, which may be virtual, experience-based, or item-based.
Folder Structure
Currencies are organized in the following structure:
- currency/
- <Currency-Identifier> # Folder matching the Identifier in the main currency YAML
- <Denomination>.yml # YAML files defining denominations
- <Currency-Identifier>.yml # Main currency configuration fileExample Structure for "USD":
- currency/
- USD/
- one.yml
- penny.yml
- USD.ymlStep-by-Step Instructions
Step 1: Define the Main Currency Configuration
Navigate to the
currencyfolder on your server.Create a YAML file named
<Currency-Identifier>.yml(e.g.,USD.yml).Configure the following sections:
Example USD.yml Configuration:
Step 2: Add Denomination Files
Create a folder named after the currency's Identifier (e.g.,
USD) in thecurrencydirectory.For each denomination, create a YAML file in this folder.
Configure each file with the denomination's settings.
Example one.yml Configuration:
Example penny.yml Configuration:
Step 3: Enable the Currency
Restart your server or reload the plugin managing the currency system.
Verify the currency and its denominations are loaded correctly.
Additional Notes
One Denomination Required: Every currency must include at least one denomination defined in its folder.
Customization: Add as many denominations as needed, following the format above.
Crafting: If crafting is enabled, ensure recipes use unique patterns to avoid conflicts.
Virtual Currencies: While denominations are required, these can represent virtual constructs if desired.
Performance: Set reasonable limits for
MaxBalanceto avoid overflow issues.
For further assistance, contact support or refer to the example configurations included with the plugin.
Last updated