Add enchant squared wrapper.

Fix dependency not being load before enchantment registering.
This commit is contained in:
alexcrea 2024-06-16 13:46:27 +02:00
parent aad9974baf
commit aa1f3a446e
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
6 changed files with 65 additions and 11 deletions

View file

@ -91,12 +91,12 @@ class CustomAnvil : JavaPlugin() {
logger.warning("Please note CustomAnvil is a more recent version of UnsafeEnchantsPlus")
}
// Register enchantments
WrappedEnchantment.registerEnchantments()
// Load dependency
DependencyManager.loadDependency()
// Register enchantments
WrappedEnchantment.registerEnchantments()
// Load chat listener
chatListener = ChatEventListener()
pluginManager.registerEvents(chatListener, this)