TradeManager [1.20.X-1.21.5]: Villager Trade Control & Custom Item Support icon

TradeManager [1.20.X-1.21.5]: Villager Trade Control & Custom Item Support -----

Nexo/ItemsAdder Support | Customize Villager Trades/Spawns | Time Of Day Based Trading




  • Added 'Add Vanilla Override' button when making a 'New Trade Rule'
  • Added 'View Vanilla Trades' similar to 'View Custom Trades' but specifically for Vanilla Overrides.
  • Added the following custom settings for Vanilla Trades that can be changed: Minimum Cost, Max Stock, Cooldown, Price Modifier (Price Multiplier), Experience, Per-Player Limit, Restock Timer, Biome (Villagers Only), Weather and Time Of Day. (Max Stock / Cooldown are included into the FREE version, the rest are available in the paid version)
  • Official 1.21.5 support.
  • Lowered 'Vanilla-Override-Buffer' time from 30 seconds to 5 seconds, this is basically the time between player interaction where the new Vanilla Settings (made by you) would apply to already existing Villagers.
  • Added 'Vanilla-Override-Buffer' as a customizable setting under the global-defaults config file (default is 5 seconds).

    It's HIGHLY recommended if you have any current Vanilla Overrides in your config to delete them and do them in game through the GUI instead. The syntax/format has changed!

    [​IMG]
----------, Apr 5, 2025

  • Fixed an issue where older Custom Trades wouldn't automatically update/fill in new parameters.
----------, Mar 16, 2025

  • Added 'Time-Of-Day' condition for Custom Trades (Premium Only).
  • Added 'messages' config file that contains all messages TradeManager sends to players so that they can easily be translated to different languages.
  • Fixed Money Based Trades not respecting Per-Player-Limits / Trade Cooldowns (Premium Only).

    Time Of Day for Custom Trades:
    [​IMG]

    Money Based Trades (Following Per-Player-Limit/Trade Cooldowns):
    [​IMG]
----------, Mar 10, 2025

  • Added `/trademanager reset-villagers` which resets all villager levels/trades.
  • Added a new setting for Custom Trades that allows you to set the Weather the Villager/Wandering Trader needs to be in for the trade to be acquired (Premium Only).

    [​IMG]
----------, Mar 5, 2025

Free Features
- Adjusted the View Custom Trades UI to remove mirroring for improved consistency and clarity.
- Additional UI changes for Custom Trades to better seperate different trades.

Premium Features (Check Discord For Early Access)
- Added 'Biome' option for Custom Trades which allow you to specify which biome your villagers needs to be from in order to get a Custom Trade (default is *ALL* of them)
- Added 'Biome' option for the 'global-defaults' config file.
- Added Vault support for Custom Trading.
- Added `/trademanager money [amount]` command for admins/ops (requires `trademanager.admin` permission) to spawn Money Items for Custom Trades.
- Added Vault settings to the `global-defaults` config file (adjustable display item, name and symbol).

Bug Fixes
- Fixed an issue related to Custom Currency where villagers that leveled up wouldn't have Custom Currency apply.
- Improved performance with code related to Villagers when it came to checking trades.
----------, Feb 24, 2025

  • Added support for Enchanted Books with enchants that have higher than normal levels.
  • Added support for Enchanted Books that contain multi-enchantments.
----------, Jan 1, 2025

  • Added "Vanilla-Trades' section to global-defaults configuration file (Maxstock/Cooldown options).
  • Updated Currency GUI so that it properly changes the display currency to what it's currency set to (so you can easily tell what it's set as)
  • Optimized the Vanilla Override code which overwrites the settings in global-defaults for Vanilla Trades.
Example Of Global Defaults:
[​IMG]
----------, Dec 12, 2024

  • Bug fix involving Restock Cooldown (Custom Items) that caused console errors.
----------, Dec 9, 2024

  • 1.21.4 Support.
  • Major bug fix involving trades not retaining their uses introduced in the last update (Please Update!)
  • You can no longer view Custom or Disabled trades without actually having any. (QoL)
  • Added global-defaults configuration file to help you setup defaults for Custom Trades (Vanilla Trades will be included here in the future)
----------, Dec 7, 2024

- Added 'Restock Timer' for Custom Trades.
- Fixed a fairly rare NPE related issue with preferred/offered currency.
- Fixed an issue related to custom currency being reset to Emeralds when a villager's jobsite is removed and placed again. (Thanks to @sx for reporting on discord)

[​IMG]
----------, Dec 2, 2024

  • Added a new setting (in the UI) for each Villager Type called "Preferred Currency" and "Offered Currency"
  • Added a new setting (in the vanilla-override config) called "Remove-Vanilla-Enchantments" that easily allows you to remove the default Enchantments (and Enchanted Books) for trades offered by Villagers.
Preferred Currency is the currency Villagers will want (default: emeralds) and Offered Currency is what they'll give (default: emeralds). You can now set these to whatever you want. ( Example: maybe your server uses a Custom Item as currency? Easily include that to Villagers now!)

[​IMG]
[​IMG]
----------, Nov 21, 2024

  • Updated/Tweaked various parts of the UI for the purpose of Quality Of Life (+ Some helpful information for new users)

[​IMG]
[​IMG]
----------, Nov 6, 2024

  • Fixed an issue with the 'Display Disabled Items' setting where it wasn't properly checking disabled trades that have no cost (not being specific with the disabled trade and disabling it overall).
  • Updated the 'Display Disabled Items' setting so instead of only affecting villagers that don't already have trades it now affects all villagers (meaning ones that already have trades)

(Both Ways Of Disabling Trades Work Now, Example Below):

[​IMG]
[​IMG]
----------, Nov 3, 2024

  • Added official 1.21.2/1.21.3 support. Bundles can now be added to Custom Trades!
  • Fixed an issue where it wouldn't return items when you close the trade input screen.
[​IMG]
----------, Oct 23, 2024

  • Added Per-Player Limited Trades for Custom Trades, meaning you can limit the maximum amount of times a trade can be done for Custom Trades.
  • Adjusted the GUI for Custom Trades making Settings have a glowing effect to better tell them apart.
  • Changed 'Acquired Trade Chance' into just 'Trade Chance'
  • Fixed an issue/error with VillagerAcquireTradeEvent reported by **@Rob** on the discord.

[​IMG]
----------, Oct 19, 2024

  • Fixed an issue where Wandering Traders didn't apply a cooldown for Custom Trades.
----------, Oct 17, 2024

  • Fixed an NPE error involving Entity interaction.
----------, Oct 16, 2024

  • Added the ability to set 'Custom Trades Only' for each and every villager type. For example, you can make Wandering Traders ONLY display your Custom Trades while the rest of the Villagers display their normal trades.
[​IMG]
----------, Oct 14, 2024

  • Added the ability to set each Custom Trade's Experience that the Villager will receive once the trade is successful.
  • Removed debug message in the console that displays the MC Version.
It's been added into the GUI (/trademanager) under View Custom Trades. This works similar to Vanilla where it rewards some Exp back to the player who does the trade too depending on the amount! Thanks to @Dragonfruit on the discord for reporting this issue/suggestion. Also a very special thank you to @Waccoon for testing the update alongside me.
----------, Oct 8, 2024

  • Added Levels For Custom Trades, including a new button to easily set Custom Trade levels located within the GUI.

[​IMG]
----------, Oct 3, 2024

  • Adjusted the code related to OnEntityLoad that would sometimes trigger an error involving ASYNC tasks.
----------, Sep 30, 2024

  • Added Custom Trade Cooldowns, by default there will be no cooldown (0) and if you already have custom trades you should be unaffected. You can always add a cooldown whenever you'd like in the Custom Trades viewer GUI (/trademanager)
  • Adjusted the GUI text slightly so that it's a tad bit more user friendly. I'll be actively doing my best so that it's simple to understand in the future! Visit the discord for any help as per usual.

Trade cooldowns were already possible for Vanilla Trades through the Vanilla-Overrides configuration file, however it wasn't possible for custom trades but now it is!
upload_2024-9-29_0-22-25.png
----------, Sep 29, 2024

  • Removed debug message that would appear when using Vanilla-Overrides configuration and not include the optional cooldown.
----------, Sep 24, 2024

  • Added "Only Display Custom Trades" option that does exactly what the name implies, it makes it so that all traders (villagers/wandering traders) ONLY display custom trades made by you!

upload_2024-9-21_0-30-26.png
----------, Sep 21, 2024

Considering we're nearly at 1000 downloads, I figured I'd add bStats. Honestly should have been way sooner.

If you've got any suggestions for features feel free to suggest them over at the discord!
----------, Sep 15, 2024

  • Restricted Trading Hours is no longer enabled by default.
  • Changed the "Reset Villager Trades" feature into "Reset Villager Trade Stock" which will reset a villager's stock on the set timer.
  • Added a particle effect for when a villager's trades get restocked by the Reset Villager Trade Stock timer.
----------, Sep 13, 2024

  • Fixed an NPE error during Wandering Traders acquiring a trade reported by SpoGi on discord.
----------, Sep 11, 2024

  • Added the ability to set Vanilla Trade cooldowns, specifically within the vanilla-override.yml file.
  • Updated the example within vanilla-override.yml to properly explain how to set trade cooldowns.
[​IMG]
----------, Sep 10, 2024

  • Added "Fisherman" for the Vanilla-Override configuration file.
  • Added an additional check to apply Vanilla Overrides involving applying the stock to trades.
----------, Sep 5, 2024

  • Vanilla overrides (stock) for trades now apply to villagers that are/were already spawned.
  • Fixed an issue where settings weren't properly being read related to Vanilla Overrides (Thanks @Arthuuurr on discord for reporting this!)
  • Wandering Traders now apply their Vanilla Overrides (Max Stock) properly.
----------, Sep 5, 2024

  • Added a new configuration file that allows you to alter default/vanilla trades, specifically to change their stock (maxUses), read the example within the file.
  • Added/Changed how Enchanted Books are handled within the configuration files (see example below)

When it comes to configuration file handling of Enchanted books it is now easier to read, following this format: "Enchantment{LEVEL}".

For example, this would completely disable any trades for Fortune 3, Power 5 and Mending Enchantment Books for Librarians:
Code (YAML):
 Librarian:
    Disabled-Trades
:
     - EMPTY_SLOT->EMPTY_SLOT->FORTUNE {3 }
      - EMPTY_SLOT->EMPTY_SLOT->POWER {5 }
      - EMPTY_SLOT->EMPTY_SLOT->MENDING {1 }
----------, Sep 4, 2024

  • Added a new configuration file that allows you to alter default/vanilla trades, specifically to change their stock (maxUses), read the example within the file.
  • Added/Changed how Enchanted Books are handled within the configuration files (see example below)

When it comes to configuration file handling of Enchanted books it is now easier to read, following this format: "Enchantment{LEVEL}".

For example, this would completely disable any trades for Fortune 3, Power 5 and Mending Enchantment Books for Librarians:
Code (YAML):
 Librarian:
    Disabled-Trades
:
     - EMPTY_SLOT->EMPTY_SLOT->FORTUNE {3 }
      - EMPTY_SLOT->EMPTY_SLOT->POWER {5 }
      - EMPTY_SLOT->EMPTY_SLOT->MENDING {1 }
----------, Sep 4, 2024

  • Fixed an issue when preparing trades for versions below 1.21.1 (1.20-1.20.4)
  • Fixed an issue where disabled villagers would still spawn regardless (thanks SpoGi for reporting this issue on discord!) and print console errors.
  • Added the ability to disable an item in general by leaving the 1st and 2nd cost empty. This will disable ANY trade that gives out this item.
----------, Aug 28, 2024

It's finally here! Major rework. Which you'd have known about if you were in the discord.

  • Added support for 1.20+
  • Complete overhaul of the GUI.
  • Custom Trades are finally here too! Oraxen/ItemsAdder Support!
  • Added tons of new features like viewing disabled trades in game and now even custom trades. You can easily remove/add them all through the in game GUI.
  • Disabling trades are now done completely different, want a specific trade disabled? Place the items (as shown in the front page) and click "prevent trade"; it's that easy!
  • Added custom disabled messages for each and every villager (in case you randomly wanted that!)
  • Added "seconds" for the intervals to Reset Villager Trades. (limited to at least 10 seconds for your own good!)

DELETE your old config files from version 1.1.2 and below prior to updating to this version!
----------, Aug 27, 2024

  • Fixed a bug related to /trademanager command that printed console errors.
----------, Aug 16, 2024

  • Fixed an issue with the plugin not working on Spigot 1.21 (even though Paper 1.21 worked perfectly fine)
  • Addressed an issue with despawning disabled villagers
  • Dropped 1.20.6 support while officially supporting 1.21 now.
----------, Aug 1, 2024

  • Fixed the update checker so that it no longer harasses you about a new update that is a lower version
  • Fixed a typo with the 'previous' button in Villager Spawns
----------, Jul 25, 2024

  • Added 'Villager Spawns', you can now disable villagers (or specific ones through professions, example: Fisherman) from spawning! (/trademanager > villager spawns in the GUI)
  • Added missing items for Wandering Trader Trades
  • Added 'Wandering Traders' to 'Villager Spawns' so you can now prevent those annoying Wandering Traders from spawning!
  • Removed debug messages left behind from v1.0.8
  • Fixed some typos within the /trademanger menu
----------, Jul 25, 2024

  • Added 'Prevent-Trade-Window' setting that once enabled will prevent players from seeing the trading GUI during Restricted Trading Hours.
  • Custom Messages for 'Prevent-Trade-Window' that supports MiniMessages for all your color needs! (Example Below)
  • GUI changes (names, colors, descriptions etc)
  • Added another Villager Trader Setting called 'Display-Disabled-Items-For-Traders' that once disabled (enabled by default) will fully prevent items from showing up in the Villager Trading GUI in case people don't want disabled trades to be seen at all.
  • QoL Changes, player inventories are now automatically closed to properly display 'trade is disabled' message.
Code (YAML):
 Restricted-Trading-Hours:
    Enabled
: true
    Time
: 1000-2000
    Prevent-Trade-Window
:
      Enabled
: true
      Random-Disabled-Message
:
       - <color: #FF0000>Trades are currently disabled! Dummy!
        - <color: #00FFFF>You can't trade here at the moment, go away!
        - <color: #800080>I don't want to talk to you right now!
----------, Jul 23, 2024

  • Added 'Restricted Trading Times' into the GUI, you can now fully edit/enable/disable it within the GUI and don't have to touch the config
  • Fixed an issue where inputting interval for the 'Villager Reset Timer' wouldn't cancel once you successfully change it (whoops!)
  • Added permission trademanager.restrictedtrades.bypass to bypass Restricted Trading Hours (OPs will bypass by default if enabled in config)
----------, Jul 20, 2024

  • Added missing 'Treasure Enchantments' such as 'Mending' to Enchanted Books. You can now enable/disable those enchantments!
----------, Jul 20, 2024

  • Added /trademanager trades reset which will re-roll all villager trades via command.
  • Moved 'Wandering Villager' into -> 'Villager Trades'
  • Added Villager Tasks section -> Villager Trades Reset Timer can be enabled/disabled within and you can set a custom interval (how often it'll re-roll villager trades)
  • Added 'Restricted Trading Hours' into the config.yml, allowing you to restrict trading within a certain time of day. (No GUI currently, you can however edit the config.yml and then do /trademanager reload and it'll apply immediately.
  • Fixed GUI Minor Issues.

    image_2024-07-19_035927372.png
----------, Jul 19, 2024

  • Added 'Wandering Traders', you can now manage their trades too!
  • Fixed an error when trading with 'Wandering Traders' prior to version 1.0.4
  • Added "OP-BYPASS' option to the config file, it's false by default. By setting it to 'true', you'd basically let /OP'd players full access to trades no matter what.
  • Added /trademanager reload to easily reload all config files
  • Further adjusted the text formatting/colors in the GUI

    image (1).png
----------, Jul 17, 2024

  • Added 'Enchanted Books' Enchants, you can now Shift + LMB them and disable specific book enchantments from being tradable with Villagers!
  • Added additional GUI in prep for 1.0.4
  • Minor changes such as GUI titles + title colors
----------, Jul 10, 2024

Added an in game message that alerts you about updates trademanager.alerts
Enchantment Support Added For The Following Traders!

  • Armorer
  • Fisherman
  • Fletcher
  • Toolsmith
  • Weaponsmith
Preview:

[​IMG]
----------, Jul 4, 2024

Update checker should be working now.
----------, Jul 1, 2024

Resource Information
Author:
----------
Total Downloads: 7,665
First Release: Jul 1, 2024
Last Update: Apr 5, 2025
Category: ---------------
All-Time Rating:
15 ratings
Find more info at discord.gg...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings