9
0
mirror of https://github.com/Auxilor/EcoArmor.git synced 2025-12-27 02:49:22 +00:00

Added update-item-names option

This commit is contained in:
Auxilor
2021-12-22 14:58:25 +00:00
parent a076fc15b9
commit 51c3158276
2 changed files with 4 additions and 1 deletions

View File

@@ -59,7 +59,9 @@ class ArmorDisplay(plugin: EcoPlugin) : DisplayModule(plugin, DisplayPriority.LO
lore.addAll(fis.lore)
}
meta.setDisplayName(slotMeta.displayName)
if (this.plugin.configYml.getBool("update-item-names")) {
meta.setDisplayName(slotMeta.displayName)
}
if (meta is LeatherArmorMeta && slotMeta is LeatherArmorMeta) {
meta.setColor(slotMeta.color)

View File

@@ -4,6 +4,7 @@
#
discover-recipes: true # If all recipes should be automatically discovered.
update-item-names: true # If item names should be updated to match config (disable to allow renaming armor pieces in anvils)
cooldown:
in-actionbar: true