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 file

Example Structure for "USD":

- currency/
  - USD/
    - one.yml
    - penny.yml
- USD.yml

Step-by-Step Instructions

Step 1: Define the Main Currency Configuration

  1. Navigate to the currency folder on your server.

  2. Create a YAML file named <Currency-Identifier>.yml (e.g., USD.yml).

  3. Configure the following sections:

Example USD.yml Configuration:


Step 2: Add Denomination Files

  1. Create a folder named after the currency's Identifier (e.g., USD) in the currency directory.

  2. For each denomination, create a YAML file in this folder.

  3. Configure each file with the denomination's settings.

Example one.yml Configuration:

Example penny.yml Configuration:


Step 3: Enable the Currency

  1. Restart your server or reload the plugin managing the currency system.

  2. 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 MaxBalance to avoid overflow issues.

For further assistance, contact support or refer to the example configurations included with the plugin.

Last updated