EcoBal is a powerful, standalone server-side Fabric economy mod designed to serve as a core API layer for other mods (like ShopShelves) and provide a complete, feature-rich economy experience out of the box. It manages player balances, persistence, administrative commands, and offers advanced, configurable in-game message formatting.
All general questions, feature requests, and non-urgent bug reports should be posted in the appropriate channels on our Discord Server. We actively monitor the server and will respond as soon as possible. This ensures that the whole community can benefit from the discussion and solutions.
While we prefer all issues to be handled via the Discord server first, you are welcome to PM me directly under specific urgent circumstances:
I will endeavor to answer your PM as soon as I can to be helpful and see what I can do to resolve your urgent issue. However, please understand that immediate responses are not guaranteed, and private messaging is a professional courtesy, not an entitlement. Thank you for your understanding and cooperation!
For mod developers, EcoBal offers all core economy functions via the static EconomyManager class. Use the silentDeposit and silentWithdraw methods to manage funds without triggering EcoBal's built-in messages, allowing your mod to use its own custom feedback.
API Location: me.andy.ecobal.api.EconomyManager
package me.andy.ecobal.api;
import me.andy.ecobal.config.MessageFormattingData;
import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; import java.util.UUID;
// NOTE: This version is simplified for API documentation. // The full implementation in the mod includes file persistence logic.
/**
ECOBAL CORE ECONOMY API (ECONOMYMANAGER)
=========================================================================
All functions are static and thread-safe for external mod use.
{@code EconomyManager.silentDeposit(uuid, amount);} */ public class EconomyManager {
// Internal balance and name maps are managed and persisted by EcoBal. // They are not directly exposed as public fields. // The following methods provide controlled access.
// --- Data Access API ---
/**
/**
/**
/**
/**
// --- Transaction API (Silent & Non-Silent) ---
/**
/**
/**
// --- Utility Methods ---
/**
// NOTE: The full mod provides internal methods like getBalance, deposit, // and reset* for command use, but these are typically not needed for // external mod integration if silent methods are used. }
getBalance, silentDeposit, silentWithdraw) in a stable, static EconomyManager class for easy integration into other mods.silentDeposit and silentWithdraw allow developers to manage funds without triggering EcoBal's built-in chat messages, enabling the use of their own custom in-game feedback.getTopBalances, getAllBalances) allow external mods (e.g., scoreboard, tab-list mods) to pull raw, sorted balance data./baltop.starting_balance and currency_symbol via the JSON configuration file, adjustable by admin commands in-game./baltop with configurable header, footer, top-3 formats, and dynamic pagination up to 10 players per page.&c) and modern hex color codes (&#RRGGBB).{text}) and Click Actions (<action:type,value>) within all configurable messages./ecobal mode.message_formatting.json) with separate formats for chat and actionbar./bal, /pay, /baltop, /ecobal) are open to everyone (OP Level 0), while all administrative commands require OP Level 2./bal, /pay, /baltop, /eco, and /ecobal help./balance, /bal (Check your own balance or another player's balance)/pay <player> <amount> (Transfer money to another player)/balancetop, /baltop, /ecotop [page] (View the richest players)ecobal.eco permission or OP Level 2)/eco give <player> <amount> (Add money to a player's balance)/eco take <player> <amount> (Remove money from a player's balance)/eco set <player> <amount> (Set a player's balance exactly)/eco start <amount> (Set the default starting balance for new players)/eco symbol <symbol> (Set the global currency symbol, e.g., '$')/ecobal reload (Reloads all configuration files without restarting the server)/ecobal mode [mode] (Checks or sets the message delivery mode: CHAT, ACTIONBAR, BOTH)/ecobal reset (Globally resets ALL player balances to the starting balance)/eco reset <player> (Resets a single player's balance to the starting balance)ecobal.command.use: Allows usage of the /ecobal and /eb help commands.ecobal.bal: Allows usage of the /balance and /bal commands.ecobal.pay: Allows usage of the /pay command.ecobal.top: Allows usage of the /balancetop and /baltop commands.ecobal.eco: Allows usage of all administrative /eco commands and configuration commands.
EcoBal is a Economy API for fabric mods.