Dependency enchantment registering now use the api.

This commit is contained in:
alexcrea 2024-07-09 21:21:10 +02:00
parent 6f1e53f68e
commit 365d0ea847
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
6 changed files with 25 additions and 33 deletions

View file

@ -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()
}
}