Plugin Release NotTooExpensive

Download Link
https://www.spigotmc.org/resources/nottooexpensive.62680/
Minecraft Versions
1.16-1.19
Compatible Java Versions
1.8 upwards
Tired of Anvils telling you who's boss?
Well, tell them that they can stick it where the sun don't shine!

What exactly does it do?
It allows you to:
  • Set the maximum enchantment cap of an anvil to a specific value.
  • Cap the max cost of items to an arbitrary number.
  • Reset Item Repair Cost
  • Tell anvils they can stick it!

YAML:
#  _  _  ___ _____   _____ ___   ___    _____  _____ ___ _  _ ___ _____   _____
# | \| |/ _ \_   _| |_   _/ _ \ / _ \  | __\ \/ / _ \ __| \| / __|_ _\ \ / / __|
# | .` | (_) || |     | || (_) | (_) | | _| >  <|  _/ _|| .` \__ \| | \ V /| _|
# |_|\_|\___/ |_|     |_| \___/ \___/  |___/_/\_\_| |___|_|\_|___/___| \_/ |___|


# Not Too Expensive Config
# By TAU
# https://www.spigotmc.org/members/tau.300190/
#

Anvil Max Repair Cost: 100000000
# Set the max cost for an anvil actions (In Lvl's)

Anvil Reset Max Repair Cost: 39
# Should the plugin reset the repair cost of this action if it costs more than this value?
# Note for 1.17.X: client now disallows taking the result item out when above level 39
# Note: clients will not display this correctly if the value is above 39
#       So this plugin will always display the cost as the title of the inventory.
# Note: Will only be checked if it is below or equal to "Anvil Max Repair Cost"

# Display (Message)
Anvil Too Expensive MSG: " &4>> &7Too Expensive &4%lvl%"
Anvil Overflow Level MSG: " &8>> &7Enchantment Cost &b%lvl%"
Not Enough Levels MSG: " &4>> &7You need to be level &c%lvl%&7 to do this"

# Depends #

Item Repair Cost TAG Limit: 39
# This not only gives control over the cumulative repair cost of an item, it also
# can be used to prevent the scenario of an item reaching the 32bit int limit of repair cost
# and thus the system not allowing further repairs

# When set with "Enable Item Tag Cap Reset: true" It will clamp the tag.RepairCost nbt of
# Any item in the Anvil to this level. Preventing the repairs from getting more expensive
# over time just by repairing the item.
# Note: The cost scan still get more expensive with more enchantments etc

Enable Item Tag Cap Reset: true

# No touchy
Config Version: 2
# No touchy

Permissions & Commands:
Code:
- nottooexpensive
  sub-command:
    reload : reloads from configuration
      permission : (tau.nottooexpensive.reload)


Source:
The src is included in the jar.
Just extract them.
Feel free to make changes, just don't claim the plugin as your own or remove my branding.
Have fun.
 
Last edited: