diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt index 76131527..03ae5090 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt @@ -80,7 +80,10 @@ class EcoEnchantsPlugin : LibReforgePlugin() { ) } - override fun createDisplayModule(): DisplayModule { + override fun createDisplayModule(): DisplayModule? { + if (configYml.getBoolOrNull("display.enabled") == false) { + return null + } return EnchantDisplay(this) } diff --git a/eco-core/core-plugin/src/main/resources/config.yml b/eco-core/core-plugin/src/main/resources/config.yml index dcaddfb9..62e0dff1 100644 --- a/eco-core/core-plugin/src/main/resources/config.yml +++ b/eco-core/core-plugin/src/main/resources/config.yml @@ -31,6 +31,8 @@ anvil: # Options for how enchantments are displayed on items display: + enabled: true # Setting this to false will disable all visual item modifications + numerals: enabled: true # If numerals should be used for the enchantment levels threshold: 10 # Above this, numbers will be used instead of numerals