VTL ~ VillagerTradeLimiter [1.14 - 1.17] 1.2.1

~ Fix those pesky OP villager discounts! ~

  1. PretzelJohn
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    Source Code:
    https://github.com/Pretzel-Development/VillagerTradeLimiter
    Description

    VillagerTradeLimiter (VTL) is a simple plugin that can modify villager trade price discounts and/or increases, without changing the base prices.

    Please let me know if you have any issues or suggestions in the Discussion section, or...

    For even faster support, join my Discord server!
    [​IMG]


    Features
    • Set the maximum discount (%) players get from healing zombie villagers for all trades!
    • Set the maximum effect level of Hero of the Village, or disable the effect!
    • Set the maximum demand for all trades (limits the price increase when a player makes the same trade too frequently)!
    • Disable villager trades entirely!
    • Full control over which items are affected and by how much
    [​IMG]
    Commands
    • /vtl → shows a help message
    • /vtl reload → reloads config.yml

    Permissions

    • villagertradelimiter.* → to use /vtl and /vtl reload
    • villagertradelimiter.use → to use /vtl
    • villagertradelimiter.reload → to use /vtl reload

    Compatibility

    This plugin is compatible with Bukkit, Spigot, and Paper servers.

    Known compatible plugins:
    • Custom Villager Modifications → LINK

    bStats

    VillagerTradeLimiter uses bStats to collect data on how this plugin is used. This helps me keep track of server and plugin versions. You can turn this off in the config by changing the following line in config.yml:
    Code (Text):
    bStats: false
    Click HERE to see the statistics for VillagerTradeLimiter!


    Default Config
    Code (Text):
    #---------------------------------------------------------------------------------#
    #                          VTL ~ VillagerTradeLimiter                             #
    #                                Version: 1.2.0                                   #
    #                                By: PretzelJohn                                  #
    #---------------------------------------------------------------------------------#


    #-------------------------------- GLOBAL SETTINGS --------------------------------#
    # This helps me keep track of what server versions are being used. Please leave this set to true.
    bStats: true

    # Set this to true if you want to completely disable ALL villager trading.
    DisableTrading: false

    # The maximum level of the "Hero of the Village" (HotV) effect that a player can have. This limits HotV price decreases.
    #   * Set to -1 to disable this feature and keep vanilla behavior.
    #   * Set to a number between 0 and 5 to set the maximum HotV effect level players can have
    MaxHeroLevel: 1

    # The maximum discount (%) you can get from trading/healing zombie villagers. This limits reputation-based price decreases.
    #   * Set to -1.0 to disable this feature and keep vanilla behavior
    #   * Set to a number between 0.0 and 1.0 to set the maximum discount a player can get. (NOTE: 30% = 0.3)
    MaxDiscount: 0.3

    # The maximum demand for all items. This limits demand-based price increases.
    #   * Set to -1 to disable this feature and keep vanilla behavior
    #   * Set to 0 or higher to set the maximum demand for all items
    # WARNING: The previous demand cannot be recovered if it was higher than the MaxDemand.
    MaxDemand: -1


    #-------------------------------- PER-ITEM SETTINGS --------------------------------#
    # Override the global settings for individual items. To disable, set like this --> Overrides: none
    # To enable, add items below!
    #   * Enchanted books must follow the format: enchantment_name_level (ex: mending_1)
    #   * All other items must follow the format: item_name (ex: stone_bricks)
    # For each item you add, you can override MaxDiscount and/or MaxDemand.
    Overrides:
      mending_1:
        MaxDiscount: 0.1
        MaxDemand: 36
      depth_strider_3:
        MaxDiscount: 0.6
      name_tag:
        MaxDiscount: -1.0
        MaxDemand: 60
      clock:
        MaxDemand: 12
      paper:
        MaxDiscount: 0.1
    ALicornXQ6_ and Darutan like this.

Recent Reviews

  1. ValenGamerXD
    ValenGamerXD
    5/5,
    Version: 1.2.1
    Great plugin, idk if its possible but i would like the ability to disable trades in certain worlds
    1. PretzelJohn
      Author's Response
      Thank you for the 5-star review! In the future, please post issues or suggestions in the Discussion section, not the Review section.
  2. JoDo
    JoDo
    5/5,
    Version: 1.1.7
    Working! The economy on my server is saved. Fixed prices for all players, no discounts. No rewriting of villagers trades, just a simple adjustment of config.
    1. PretzelJohn
      Author's Response
      Thanks for taking the time to review VTL! I'm glad it saved your server's economy! If you need any support or have any suggestions, I'm just a click away!
  3. m100plis
    m100plis
    5/5,
    Version: 1.1.7
    Idk why it has so few downloads, awesome plugin. Great work :)
    .................
    1. PretzelJohn
      Author's Response
      That means alot! Thank you very much :D
  4. Cantibra
    Cantibra
    5/5,
    Version: 1.1.7
    Does what it should... Theres nothing else to say... Excellent work...
    I love it!
  5. SirAussieman
    SirAussieman
    5/5,
    Version: 1.1.4
    Perfect plugin for those looking to make all sorts of villager trading changes. Support in the 'Discussions' tab was friendly and quick when I was having an issue.

    100% recommend this plugin, especially servers that have man-made villager trades.
    1. PretzelJohn
      Author's Response
      Thank you so much for your review! I'm glad I was able to help you :D
  6. hitewaer
    hitewaer
    5/5,
    Version: 1.1.3
    Thx, resently, this the best plugin for surv servers!
    .................................
    1. PretzelJohn
      Author's Response
      Thank you!
  7. hitewaer
    hitewaer
    5/5,
    Version: 1.0.3
    great plug, but pls fix this

    Could not pass event PlayerInteractEntityEvent to VillagerTradeLimiter v1.0.3
    java.lang.NullPointerException: null

    yatopia 1.16.4
    1. PretzelJohn
      Author's Response
      Thank you for your review! I'll talk to you about the error in discussions!
  8. Darutan
    Darutan
    5/5,
    Version: 1.0.2
    Great plugin. It should have appeared immediately after 1.14 was released. Sometimes deals become very imbalanced, especially due to repeated cures of villagers or simply significant discounts. We all know the sad joke about buying bookshelves, breaking them and then selling books back for more.
    This is nonsense, which the developers themselves have not yet corrected. This plugin will allow you to fix some of the distortions that have arisen with the villagers trade in the latest versions. For additional modification of deals, I recommend (I don't know if these plugins will work together) - https://www.spigotmc.org/resources/custom-villager-modifications.78329/
    1. PretzelJohn
      Author's Response
      Thank you for your lovely review! I'll test compatibility with Custom Villager Modifications, and post what I find! :)