VTL ~ VillagerTradeLimiter [1.14.1 - 1.20.1] icon

VTL ~ VillagerTradeLimiter [1.14.1 - 1.20.1] -----

~ Fix those pesky OP villager discounts! ~



1.5.0 ~ Biggest update yet!
Hello, everyone! I've got a big update for all of you :) As always, if you have any issues or suggestions, join our Discord server or use the Discussions tab for quick support! The many changes in this update are:

FIX ~ Fixed a villager inventory dupe bug, where opening a villager's trading menu would multiply the villager's inventory contents 16 times. ( Thanks to @xlxLoi )


FIX ~ Smoothed out the Hero of the Village limiter, so the player doesn't lose their HotV effect after trading, but the discount is still limited correctly.


FEATURE ~ Added a /vtl invsee command, which allows you to see the inventory of a villager. Like /vtl see <player>, look at the villager you want to see the inventory for, and enter the command into chat. The permission to use the command is villagertradelimiter.invsee, which is also given to OP players by default.


FEATURE ~ Added a /vtl see <player> command, which allows you to see a villager's trade prices for another (offline or online) player. Just look at the villager you want to see trade prices for, and enter the command into chat! The permission to use the command is villagertradelimiter.see, which is given to OP players by default. (Thanks to Seema on Discord)


FEATURE ~ Added customizable help, success, and error messages, which can be configured in messages.yml in your plugin folder.


FEATURE ~ Added a configurable result slot, like Item1 and Item2, but for the result slot, so you can now set the item type and amount for all 3 parts of any trade. Example:
Code (Text):
Overrides:
  name_tag:
    Item1:
      Material: paper
      Amount: 64
    Item2:
      Material: ink_sac
      Amount: 32
    Result:
      Material: name_tag
      Amount: 2

FEATURE ~ Added per-player trading cooldowns, in real-world time (Thanks to sonoffoe on Discord). These cooldowns limit how often a player can make a certain trade with ANY villager in seconds (s), minutes (m), hours (h), days (d), or weeks (w). The following example will only allow a player to get 1 mending book every 7 days, no matter how many mending villagers they have:
Code (Text):
Overrides:
  mending_1:
    MaxUses: 1
    Cooldown: 7d

FEATURE ~ Added per-villager restock cooldowns, in real-world time (Thanks again to sonoffoe on Discord). These cooldowns limit how often a villager can restock a certain trade, which affects ALL players who trade with the villager. Like the per-player cooldowns, the per-villager cooldowns can be in seconds (s), minutes (m), hours (h), days (d), or weeks (w). The following example will only allow a villager to restock mending books once every 7 days, no matter how many players trade with the villager:
Code (Text):
Overrides:
  mending_1:
    Restock: 7d
----------, Jan 15, 2022
Resource Information
Author:
----------
Total Downloads: 13,199
First Release: Dec 29, 2020
Last Update: Jun 29, 2023
Category: ---------------
All-Time Rating:
32 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings