mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
Dependency enchantment registering now use the api.
This commit is contained in:
parent
6f1e53f68e
commit
365d0ea847
6 changed files with 25 additions and 33 deletions
|
|
@ -37,7 +37,7 @@ object DependencyManager {
|
|||
|
||||
}
|
||||
|
||||
fun handleConfigChanges(plugin: Plugin) {
|
||||
fun handleCompatibilityConfig(plugin: Plugin) {
|
||||
val folder = File(plugin.dataFolder, "compatibility")
|
||||
|
||||
enchantmentSquaredCompatibility?.registerPluginConfiguration()
|
||||
|
|
@ -53,4 +53,10 @@ object DependencyManager {
|
|||
defaultConfig["enchant_values.${enchantment.key.key}.book"] = rarity.bookValue
|
||||
}
|
||||
|
||||
fun registerEnchantments() {
|
||||
enchantmentSquaredCompatibility?.registerEnchantments()
|
||||
ecoEnchantCompatibility?.registerEnchantments()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue