mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
add superenchant bulk operation
This commit is contained in:
parent
a1984ad5b9
commit
8141232c46
2 changed files with 52 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue