diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EcoEnchant.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EcoEnchant.kt index 7df0891e..64df71f5 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EcoEnchant.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EcoEnchant.kt @@ -8,6 +8,7 @@ import com.willfp.eco.core.config.interfaces.Config import com.willfp.eco.core.config.readConfig import com.willfp.eco.core.fast.fast import com.willfp.eco.core.placeholder.PlayerStaticPlaceholder +import com.willfp.eco.core.placeholder.PlayerlessPlaceholder import com.willfp.eco.core.placeholder.context.PlaceholderContext import com.willfp.eco.core.placeholder.templates.SimpleInjectablePlaceholder import com.willfp.eco.util.StringUtils @@ -131,6 +132,10 @@ abstract class EcoEnchant( } ) + PlayerlessPlaceholder(plugin, "${id}_name") { + displayName + }.register() + conditions = Conditions.compile( config.getSubsections("conditions"), if (plugin.isLoaded) ViolationContext(plugin, "Enchantment $id")