add superenchant bulk operation

This commit is contained in:
alexcrea 2026-05-14 14:58:01 +02:00
parent a1984ad5b9
commit 8141232c46
Signed by: alexcrea
GPG key ID: E346CD16413450E3
2 changed files with 52 additions and 0 deletions

View file

@ -10,6 +10,7 @@ import org.bukkit.command.CommandSender
import org.bukkit.event.inventory.InventoryClickEvent
import org.bukkit.plugin.RegisteredListener
import xyz.alexcrea.cuanvil.api.EnchantmentApi
import xyz.alexcrea.cuanvil.enchant.bulk.SuperEnchantBulkOperation
import xyz.alexcrea.cuanvil.enchant.wrapped.CASuperEnchantEnchantment
import java.util.logging.Level
@ -28,6 +29,10 @@ class SuperEnchantDependency(override val plugin: SuperEnchants): GenericPluginD
}
field.setAccessible(true)
val bulkOpperations = SuperEnchantBulkOperation(plugin)
EnchantmentApi.addBulkGet(bulkOpperations)
EnchantmentApi.addBulkClean(bulkOpperations)
enchManager = field.get(plugin) as EnchantManager
overrideReloadCommand()