mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-16 04:31:22 +01:00
Add an option to disable display module completely
This commit is contained in:
parent
f533654670
commit
753956d049
@ -86,7 +86,10 @@ class EcoEnchantsPlugin : LibReforgePlugin() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun createDisplayModule(): DisplayModule {
|
override fun createDisplayModule(): DisplayModule? {
|
||||||
|
if (configYml.getBoolOrNull("display.enabled") == false) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
return EnchantDisplay(this)
|
return EnchantDisplay(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@ anvil:
|
|||||||
|
|
||||||
# Options for how enchantments are displayed on items
|
# Options for how enchantments are displayed on items
|
||||||
display:
|
display:
|
||||||
|
enabled: true # Setting this to false will disable all visual item modifications
|
||||||
|
|
||||||
numerals:
|
numerals:
|
||||||
enabled: true # If numerals should be used for the enchantment levels
|
enabled: true # If numerals should be used for the enchantment levels
|
||||||
threshold: 10 # Above this, numbers will be used instead of numerals
|
threshold: 10 # Above this, numbers will be used instead of numerals
|
||||||
|
Loading…
Reference in New Issue
Block a user