CobbleDollars Command Shops is an addon for CobbleDollars. It adds command-driven shops that can be opened by name and fully managed on the server. The mod is built for servers that want more control over shop behavior, stock handling, access rules, and transaction logging without moving gameplay authority to the client.
item, stack, tag, mod, match.include, and match.excludeThis mod is designed to be server-authoritative.
It does not replace CobbleDollars itself, does not replace CobbleDollars NPCs, and does not move shop logic to the client. It only takes over shop sessions opened through this addon.
If the same jar is installed on the client, the mod can also provide optional client-side UI enhancements. The core shop logic still remains on the server.
Public commands:
/cdshops open <shop>/cdshops list/cdshops visibility listAdmin commands (permission level 2):
/cdshops open <shop> <targets>/cdshops reload/cdshops restock <shop> all <players>/cdshops restock <shop> offer <offer> <players>/cdshops stock <shop> <player>/cdshops visibility <shop> status/cdshops visibility <shop> enable/cdshops visibility <shop> disable [message]/cdshops stats summary [window]/cdshops stats top <shops|offers|players|items> [window] [limit]/cdshops stats shop <shop> [window]/cdshops stats player <player|uuid> [window]/cdshops stats item <item> [window]/cdshops whereOn first server start, the mod generates its config files in:
config/cobbledollarscommandshops/
CONFIG_GUIDE.md
audit.json
feedback.json
global_bank.json
shops/
general_store/
shop.json
blacksmith/
shop.json
explorer/
shop.json
syntax_showcase/
shop.json
bank.json
Transaction audit logs are written to:
logs/cobbledollarscommandshops/audit.jsonl
The /cdshops stats ... admin commands read the active audit.jsonl file and any rotated .jsonl.zip archives on demand.
If you want to understand how to write a shop.json or bank.json, start with these files:
config/cobbledollarscommandshops/CONFIG_GUIDE.mdconfig/cobbledollarscommandshops/global_bank.jsonconfig/cobbledollarscommandshops/shops/syntax_showcase/shop.jsonconfig/cobbledollarscommandshops/shops/syntax_showcase/bank.jsonShop-specific bank files go here:
config/cobbledollarscommandshops/shops/<shop_id>/bank.json
If no shop-specific bank.json exists, the mod uses:
config/cobbledollarscommandshops/global_bank.json
If you find a bug, please report it in the comments or open an issue. You can also contact me directly on CurseForge/Modrinth for more specific questions ! If you want to use or modify this code, please check the license first.
tested with :