All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Savs Common Economy

Savs Common Economy

by xSaVageAU • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Savs Common Economy

A comprehensive server-side economy mod for Fabric. It provides a robust economy system with support for JSON, SQLite, MySQL, and PostgreSQL storage, physical bank notes, player chest shops, and cross-server network synchronization.

Core Features

  • Database Support: Start simple with JSON (default), or scale up to SQLite, MySQL, or PostgreSQL.
  • Redis Network Sync: Built-in support for Redis Pub/Sub. Synchronize balances and transaction notifications across proxy setups and multi-server networks.
  • Common Economy API: Supports the Common Economy API, integrating with Universal Shops, Mob Money, and other compliant economy mods.
  • Chest Shops: Player shops. Create buy and sell chest shops using vanilla signs. Can be made into Admin Shops with infinite stock.
  • Buy & Sell System: Allow your players to directly trade with the server using /buy and /sell commands. (Customizable via worth.json).
  • Bank Notes: Players can /withdraw their digital balance into physical vanilla paper items to trade or stash away.

Commands

Player Commands

  • /bal or /balance: Check your own balance.
  • /bal <player>: Check another player's balance.
  • /pay <player> <amount>: Pay an amount to another player.
  • /baltop or /balancetop: View the richest players on the server.
  • /withdraw <amount>: Withdraw money as a physical bank note.
  • /worth: Check the value of the item in your hand.
  • /worth all: Check the value of all items in your inventory matching the one in your hand.
  • /worth list: View an organized, colored table of all server buy and sell prices.
  • /worth <item>: Check the value of a specific item.
  • /buy <item> [amount]: Purchase items directly from the server.
  • /sell: Sell the item stack currently in your hand.
  • /sell all: Sell all identical items in your inventory.

Shop Commands

  • /shop create sell <price>: Create a selling shop (sells items TO players).
  • /shop create buy <price>: Create a buying shop (buys items FROM players).
  • /shop remove: Enter remove-mode to delete a shop by clicking on its sign.
  • /shop info: Display information about the shop you are looking at.
  • /shop list: List all active shops you own.

Admin Commands (Level 2+ / Configurable)

  • /givemoney <player> <amount>: Add money to a player's account.
  • /takemoney <player> <amount>: Remove money from a player's account.
  • /setmoney <player> <amount>: Set a player's balance to a specific amount.
  • /resetmoney <player>: Reset a player's balance to the default starting value.
  • /shop admin: Toggle Admin Shop creation (infinite stock/funds).
  • /ecolog <target> <time> <unit> [page]: Search transaction logs (e.g., /ecolog * 1 h).

Configuration Guide

The main configuration file is automatically created at config/savs-common-economy/config.json. From here, you can change the default starting balances, currency symbols, and database details.

{
  "defaultBalance": 1000.0,
  "currencySymbol": "$",
  "symbolBeforeAmount": true,
  "enableSellCommands": false,
  "enableChestShops": true,
  "storage": {
    "type": "JSON",
    "host": "localhost",
    "port": 3306,
    "database": "savs_economy",
    "user": "root",
    "password": "password",
    "tablePrefix": "savs_eco_",
    "poolSize": 10,
    "connectionTimeout": 30000,
    "idleTimeout": 600000
  },
  "redis": {
    "enabled": false,
    "host": "localhost",
    "port": 6379,
    "password": "",
    "channel": "savs-economy-updates",
    "debugLogging": false,
    "timeout_ms": 5000,
    "client_name": "Savs-Economy-Node"
  },
  "apiNotificationMode": "ACTION_BAR",
  "commandNotificationMode": "CHAT"
}

Config Settings Explained

General

  • defaultBalance: How much money new players start with when they first join.
  • currencySymbol: The symbol shown next to money amounts (e.g. "$", "€", "Coins").
  • symbolBeforeAmount: If true, output shows $100. If false, output shows 100$.
  • enableSellCommands: Turns the /worth, /buy, and /sell server market on or off.
  • enableChestShops: Turns the player chest shop sign system on or off.

Storage Options

Controls how player balances are saved.

  • storage.type: Choose how to save player balances. JSON is the default and is perfect for standard servers. Change this to MYSQL or POSTGRESQL if you run a large network.
  • storage.host / port / database / user / password: Fill these in only if you are using MYSQL or POSTGRESQL.
  • storage.tablePrefix: The prefix used for the database tables (default savs_eco_).

Redis Network Sync (Optional)

If you run a multi-server network, turn this on to sync balances between your servers.

  • redis.enabled: Turn this to true to enable sharing balances across servers.
  • redis.host / port / password: Your Redis server login details (Port is usually 6379).
  • redis.channel: Make sure every server in your network has the EXACT same text here so they can talk to each other.

Chat Notifications

Controls how transaction messages appear to players. Set these to ACTION_BAR (shows briefly above the hotbar), CHAT (standard chat message), or NONE.

  • apiNotificationMode: Messages triggered automatically by other plugins.
  • commandNotificationMode: Messages from player commands like /pay.

Permissions & OP Levels

The mod supports LuckPerms (Recommended) and the Fabric Permissions API.

If you aren't using a permissions manager, we gracefully fall back to standard Vanilla OP Levels. Open the config/savs-common-economy/permissions.json file to easily change what OP level is required for each command. Most standard player commands default to OP level 0 (everyone), while admin commands default to OP level 2.

Here is a list of all current permission nodes you can change in the config:

Player Command Nodes (Default: Level 0)

  • savscommoneconomy.command.bal: Access to /bal for checking your own balance.
  • savscommoneconomy.command.bal.others: Access to /bal <player> for checking someone else's balance.
  • savscommoneconomy.command.pay: Access to /pay.
  • savscommoneconomy.command.withdraw: Access to /withdraw.
  • savscommoneconomy.command.baltop: Access to /baltop.
  • savscommoneconomy.command.worth: Access to /worth and /worth all.
  • savscommoneconomy.command.sell: Access to /sell and /sell all.
  • savscommoneconomy.command.buy: Access to /buy.

Shop Command Nodes (Default: Level 0)

  • savscommoneconomy.shop.create: Access to create both buy and sell chest shops.
  • savscommoneconomy.shop.info: Access to check shop details.
  • savscommoneconomy.shop.list: Access to see all your active shops.
  • savscommoneconomy.shop.remove: Access to safely break your own shops.

Admin Command Nodes (Default: Level 2)

All powerful administrative features are grouped securely under one single node constraint.

  • savscommoneconomy.admin: Controls access to all admin features including /givemoney, /takemoney, /setmoney, /resetmoney, /shop admin, and /ecolog.

Chest Shops Setup

Chest shops allow players or admins to buy and sell items directly from chests.

How to create a Shop:

  1. Place any chest container and insert items (if making a sell shop).
  2. Look precisely at the chest while holding the precise matching item you wish to market.
  3. Run /shop create sell 100 to create a shop that sells items to players for $100 per interaction unit.
  4. Or, run /shop create buy 50 to create a shop that purchases items from players for $50 per interaction unit.

How to trade with a Shop:

  1. Right-click any physical shop sign to begin a transaction.
  2. Type in the chat the amount you want to buy or sell (e.g. type 10 or type all) and press enter.
  3. Receive your items or money.

How to Install Savs Common Economy (Mod)

Savs Common Economy by xSaVageAU is verified for Fabric across Minecraft versions 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3 (latest release: v1.7.2-26.3, file size: 18.8 MB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Savs Common Economy file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric
4d ago 1
26.3
Fabric
2mo ago 1
26.2
Fabric
2mo ago 1
26.2
Fabric
3mo ago 1
26.2
Fabric
4mo ago 1
26.2
Fabric
4mo ago 1
26.2
Fabric
5mo ago 1
26.1.x
Fabric
7mo ago 1
26.1.x
Fabric
7mo ago 1
26.1.x
Fabric
7mo ago 1
26.1.x
Fabric
7mo ago 1
1.21.11
Fabric
8mo ago 1
1.21.10
Fabric
8mo ago 1
1.21.11
Fabric
11mo ago 1
1.21.10
Fabric
11mo ago 1
1.21.10
Fabric
last yr. 1
1.21.10
Fabric
last yr. 1
1.21.10
Fabric
last yr. 1
1.21.10
Fabric
last yr. 1
1.21.10
Fabric
last yr. 1
1.21.10
Fabric
last yr. 1
Bug fixes for 26.3.

  • PostgreSQL storage should be working again. Existing tables are converted automatically on startup.
  • commandNotificationMode is honored again, and apiNotificationMode NONE now hides API messages.
  • /shop admin now shows an error when you aren't looking at a shop chest, instead of doing nothing.
Updated mod for 26.3
Prevent shop signs dropping a sign item when broken by the shop owner
# Server-Side Translation & Localization

Added server-side translations/localization. Shop signs, chest shop messages, /sell, /economy, /log, and bank note output can all be localized.

  • Added a server-side translation system with JSON lang files extracted to config/savs-common-economy/lang/ and kept in sync with mod updates (existing edits are preserved).
  • Added a language config option (defaults to en_us) to select the active language. Ships with English (en_us) and Chinese (zh_cn) out of the box.

# Fixed more chest shop issues
  • Ensure correct item amount gets transferred to shop container when selling more than one stack.
  • Added a storage space check before going through with transaction.

# Fix chest shop transaction issues
  • add inventory space pre-validation

# Update target version to 26.2
  • No other changes were made

# Fixed critical bugs with the chest shops

  • FIXED**: Players not receiving money when selling items to a shop.
  • FIXED**: Any player could open any chest shop.

Continue to report any bugs that you may experience, it helps a lot!


[Changelog](https://github.com/xSaVageAU/Savs-Common-Economy/compare/v1.6.3...v1.6.4)

# Savs Common Economy v1.6.3 Release Notes

## ⚠️ Important
  • If you are updating from 1.5.1 (1.21.10/1.21.11):** The previous 1.6.x updates were part of a full rewrite to support Minecraft 26.1.
While it is fully backward compatible, we recommend backing up your config folder and database (if using one) before upgrading.
  • Existing savs-redis.json, worth.json, and shops.json files will automatically migrate to the new formats.
  • Savs-Redis-Lib is no longer required as a standalone mod and can be safely deleted.

## Changes & Improvements

### API Precision & Cents Scaling
Fixed an issue where mod integrations (like Mob Money) would cause player balances to be rounded down to the nearest whole dollar.

### Enhanced UI Compatibility (Sanitization)
Improved robustness when entering prices in external mod UI menus (e.g., the Anvil menu in **Universal Shops**).
  • You can now submit prices that include the $ symbol or common formatting characters (like commas) without causing errors.


## Full Changelog

# Savs Common Economy v1.6.2 Release Notes

## ⚠️ Important
  • If you are updating from 1.5.1 (1.21.10/1.21.11):** The 1.6.1 update was a full rewrite to support Minecraft 26.1.
While it is fully backward compatible, we recommend backing up your config folder and database (if using one) before upgrading.
  • Your existing savs-redis.json, worth.json, and shops.json files will automatically migrate to the new formats.
  • Savs-Redis-Lib is no longer required as a standalone mod and can be safely deleted.
  • This is a targeted hotfix for API notifications.**


## Changes & Improvements

### Action Bar API Notifications
Fixed Action Bar support for external mod interactions. When 3rd-party mods (like Mob Money) update a player's balance via the Common Economy API, the player will now receive a clean [Economy] notification.
  • You can toggle between Chat and Action Bar using the apiNotificationMode setting in the config.


## Full Changelog
# Savs Common Economy v1.6.1 Release Notes

## ⚠️ Important
  • If you are updating an existing server:** This update is a full rewrite to support Minecraft 26.1.
While it is fully backward compatible, we recommend backing up your config folder and database (if using one) before upgrading.
  • Your existing savs-redis.json, worth.json, and shops.json files will automatically migrate to the new formats.
  • Savs-Redis-Lib is no longer required as a standalone mod and can be safely deleted.


## New Features

### Minecraft 26.1 Support
The entire codebase has been ported and rewritten for Minecraft 26.1.

### Native Redis Synchronization
Redis PubSub for cross-server balance synchronization is now built natively into the core mod.

### Permissions System
The mod has been updated to interface with the Fabric Permissions API v0.7.0. You can securely control access to all commands via mods like LuckPerms. A permissions.json configuration file has also been added as a fallback, letting you adjust the required Vanilla OP Level for commands if you aren't using an external permissions manager.

### Buy & Sell Split Market
Server-direct trading has been expanded. We've added a /buy command to complement /sell. The worth.json configuration now separates buyPrices and sellPrices. When migrating from old versions, your new buyPrices will safely default to double your current sell rates.

## Quality of Life

### Event-Driven Shop Computations
Shop signs have been optimized to use an event-based system. They now only refresh exactly when stock is changed, eliminating the previous background looping scans.


## Full Changelog


  • Compatibility:** Minecraft 26.1 (Fabric)
  • Server-Side Only:** No client installation required

# Savs Common Economy v1.5.1 Release Notes

## ⚠️ Important
  • If you are updating an existing server:** Any existing chest shops that sell items with NBT/custom data (e.g., custom named items, enchanted gear, potions, modded items like Bank Notes) **must be destroyed and recreated** by the shop owner after updating to v1.5.1.

While this update safely loads your old shops, the previously saved data for those complex items is already permanently lost from the old JSON file. Recreating the shop lets the new serializer properly capture and save the item components!

## Bug Fixes

### Chest Shop NBT Data Loss (Critical)
Fixed a major issue where items with complex custom components would lose their NBT/Component data and break upon a server restart.
  • Full Custom Item Support**: There was an oversight where the mod was previously failing to actually save the custom data (NBT) for items in chest shops. Now, all complex custom data (like enchantments, custom names, and potion effects) is accurately captured and saved.
  • Backward Compatibility**: Your existing server shops will continue to load perfectly fine without any manual file editing required! Plain items will continue working seamlessly.

## Quality of Life

### Shop Info
The /shop info command has been updated to display the item ID alongside the display name.


## Full Changelog


  • Compatibility:** Minecraft 1.21.11 (Fabric)
  • Server-Side Only:** No client installation required

# Savs Common Economy v1.5.1 Release Notes

## ⚠️ Important
  • If you are updating an existing server:** Any existing chest shops that sell items with NBT/custom data (e.g., custom named items, enchanted gear, potions, modded items like Bank Notes) **must be destroyed and recreated** by the shop owner after updating to v1.5.1.

While this update safely loads your old shops, the previously saved data for those complex items is already permanently lost from the old JSON file. Recreating the shop lets the new serializer properly capture and save the item components!

## Bug Fixes

### Chest Shop NBT Data Loss (Critical)
Fixed a major issue where items with complex custom components would lose their NBT/Component data and break upon a server restart.
  • Full Custom Item Support**: There was an oversight where the mod was previously failing to actually save the custom data (NBT) for items in chest shops. Now, all complex custom data (like enchantments, custom names, and potion effects) is accurately captured and saved.
  • Backward Compatibility**: Your existing server shops will continue to load perfectly fine without any manual file editing required! Plain items will continue working seamlessly.

## Quality of Life

### Shop Info
The /shop info command has been updated to display the item ID alongside the display name.


## Full Changelog


  • Compatibility:** Minecraft 1.21.10 (Fabric)
  • Server-Side Only:** No client installation required

# Savs Common Economy v1.5.0 Release Notes

## New Features & Fixes

### Multiple Versions Now Supported
  • Minecraft 1.21.11**: Updated to support the latest version, including adaptations for the new permission API changes.
  • Minecraft 1.21.10**: Support continued with v1.5.0 improvements.

## Architecture Changes

We've extracted all database connection logic (MariaDB, Redis, HikariCP, etc.) into a separate, reusable library called **SavDBCore**.

### Startup Stability Improvements
Fixed a critical race condition that could cause a crash when using Savs-Common-Economy alongside DBWrapper **(WIP)** on the same server.
  • Lazy Initialization**: The economy mod now waits patiently for the database to be ready before connecting, rather than forcing a connection during the initial boot phase.
  • Retry Logic**: Added a robust retry mechanism (up to 20 seconds) to ensure the server starts smoothly even if the database takes a moment to initialize.

## Full Changelog


  • Compatibility:** Minecraft 1.21.10 & 1.21.11 (Fabric)
  • Server-Side Only:** No client installation required

# Savs Common Economy v1.5.0 Release Notes

## New Features & Fixes

### Multiple Versions Now Supported
  • Minecraft 1.21.11**: Updated to support the latest version, including adaptations for the new permission API changes.
  • Minecraft 1.21.10**: Support continued with v1.5.0 improvements.

## Architecture Changes

We've extracted all database connection logic (MariaDB, Redis, HikariCP, etc.) into a separate, reusable library called **SavDBCore**.

### Startup Stability Improvements
Fixed a critical race condition that could cause a crash when using Savs-Common-Economy alongside DBWrapper **(WIP)** on the same server.
  • Lazy Initialization**: The economy mod now waits patiently for the database to be ready before connecting, rather than forcing a connection during the initial boot phase.
  • Retry Logic**: Added a robust retry mechanism (up to 20 seconds) to ensure the server starts smoothly even if the database takes a moment to initialize.

## Full Changelog


  • Compatibility:** Minecraft 1.21.10 & 1.21.11 (Fabric)
  • Server-Side Only:** No client installation required

Savs Common Economy Icon
Download Savs Common Economy
Select game version
Select platform