Compatibility
Minecraft: Java Edition
Platforms
Links
Creators
Details
Changelog
Changelog New Features
SQLite Database Integration: Custom trade prices are now stored in a persistent SQLite database (plugins/NoDiscounts/prices.db) instead of config files.
Full Enchantment Support: Added support for all enchantments, including modded ones.
Dynamic Tab Completion: Command tab completion now auto-suggests every enchantment and level combination available.
Enhanced Persistence: Custom prices survive restarts with robust database storage.
Improvements
Error Handling: Fixed ConcurrentModificationException in tab completion.
Performance: Optimized database operations and memory usage.
Compatibility: Works with all enchantments, vanilla and modded.
User Experience: Expanded command help with examples and formatting guides.
Technical Changes
Database Structure: Prices saved in custom_prices table (item_key, price).
File Location: Database auto-created at plugins/NoDiscounts/prices.db.
API Updates: Updated for Minecraft 1.21.4 (Paper/Spigot).
Memory Management: Fixed concurrent modification issues during tab completion.
Features
Disables All Villager Discounts (zombie curing, reputation, Hero of the Village).
Static Trade Prices (overused trades never inflate).
Preserves Villager Progression (leveling, unlocking trades, and refreshing).
Hero of the Village Removal (no free gifts).
Custom Pricing System
Set custom emerald prices for any enchanted book using this format:
enchanted_book_sharpness_5 → Sharpness V
enchanted_book_protection_4 → Protection IV
enchanted_book_mending_1 → Mending I
Data persists permanently in SQLite.
Commands
/nodiscounts on — Enable discount prevention
/nodiscounts off — Disable discount prevention
/nodiscounts status — Check plugin status + view custom prices
/nodiscounts setprice <item_key> <price> — Set a custom price
Database Info
Location: plugins/NoDiscounts/prices.db
Table: custom_prices (item_key TEXT PRIMARY KEY, price INTEGER)
Auto-created on first run.
Examples
/nodiscounts setprice enchanted_book_sharpness_5 40
/nodiscounts setprice enchanted_book_protection_4 35
/nodiscounts setprice enchanted_book_mending_1 50
/nodiscounts status
Files
Metadata
Release channel
ReleaseVersion number
2.0.0Loaders
Game versions
1.21, 1.21.4Downloads
12Publication date
September 27, 2025 at 3:33 PMPublisher

AlanTheDev
Member


