mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-28 16:05:14 +01:00
Added %ecoenchants_<id>_name% placeholder
This commit is contained in:
parent
be283ce3ae
commit
b9bab4939f
@ -8,6 +8,7 @@ import com.willfp.eco.core.config.interfaces.Config
|
|||||||
import com.willfp.eco.core.config.readConfig
|
import com.willfp.eco.core.config.readConfig
|
||||||
import com.willfp.eco.core.fast.fast
|
import com.willfp.eco.core.fast.fast
|
||||||
import com.willfp.eco.core.placeholder.PlayerStaticPlaceholder
|
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.context.PlaceholderContext
|
||||||
import com.willfp.eco.core.placeholder.templates.SimpleInjectablePlaceholder
|
import com.willfp.eco.core.placeholder.templates.SimpleInjectablePlaceholder
|
||||||
import com.willfp.eco.util.StringUtils
|
import com.willfp.eco.util.StringUtils
|
||||||
@ -131,6 +132,10 @@ abstract class EcoEnchant(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PlayerlessPlaceholder(plugin, "${id}_name") {
|
||||||
|
displayName
|
||||||
|
}.register()
|
||||||
|
|
||||||
conditions = Conditions.compile(
|
conditions = Conditions.compile(
|
||||||
config.getSubsections("conditions"),
|
config.getSubsections("conditions"),
|
||||||
if (plugin.isLoaded) ViolationContext(plugin, "Enchantment $id")
|
if (plugin.isLoaded) ViolationContext(plugin, "Enchantment $id")
|
||||||
|
Loading…
Reference in New Issue
Block a user