This is an addon to use the permission-based enchantment cost discount. You can give a player enchant cost discount permission ("tokenenchant.enchant.discount.<enchantname>.<discount_rate>").
You need to use whatever permission plugin you use on your server to give "tokenenchant.enchant.discount.<enchantment>.<discount_rate>" permission node to your players.
<discount_rate> is specified as a number between 0.0 and 1
example: tokenenchant.enchant.discount.*.0.1 will give 10% discount for all enchantment types.
Commands:
- /te ecdiscount info : shows the current discount on the item you're holding.
Installation:
To install this addon, just place TEAddon-EnchantCostDiscountPerm-x.x.x.jar in 'plugin/TokenEnchant/addons' folder and restart the server.
Configuration:
Addons:
EnchantCostDiscountPerm:
default_discount: 0.0 # no discount
info_message: "&a[TE-Enchant Discount] Your enchantment discount for &e%enchantment% &ais &e%discount%&a."
help_messages:
info:
msg: "/te ecdiscount info <enchantment>: shows your current enchantment discount value."
permission: "tokenenchant.enchant.discount.info"
# you can use the permission nodes listed here to give users/groups multiplier permissions such as
# tokenenchant.enchant.discount.Explosive.0.2 (this will give 20% discount),
permission: "tokenenchant.enchant.discount"