Plugin installation and configuration
Just drop the plugin jar to /plugin on a spigot or fork of spigot, restart, and it should work.
Plugin configuration guide will come later in this wiki (not the priority). Preferably, use /configanvil to configure the plugin.
Custom enchantment plugin developers
If you like to make your custom enchantment plugin compatible with Custom Anvil, the rest of the documentation will help you with that.
Here are the general step to make your plugin compatible with Custom Anvil:
- Add CustomAnvil as softdepend or depend
- On startup, if CustomAnvil is present, listen to the necessary event.
- On event trigger, Register Enchantments, Material Group and Enchantment Conflict.
- (Optional) Also register bulk operation for optimization if possible.
You can also register Custom anvil recipe if you like to.
Add custom anvil as dependency
Custom Anvil is available on Maven Central. You can check the lastest version here
Make sure mavenCentral() is present in your Gradle repositories
Maven dependency
<dependency>
<groupId>xyz.alexcrea</groupId>
<artifactId>CustomAnvil</artifactId>
<version>1.14.0</version>
</dependency>
Gradle dependency (Groovy)
dependencies {
compileOnly 'xyz.alexcrea:CustomAnvil:1.14.0'
}
for easy copy paste:
compileOnly 'xyz.alexcrea:CustomAnvil:1.14.0'
Gradle dependency (Kotlin)
dependencies {
compileOnly("xyz.alexcrea:CustomAnvil:1.14.0")
}
for easy copy paste:
compileOnly("xyz.alexcrea:CustomAnvil:1.14.0")
Complementary information
Right now, documentation is incomplete and more page will be provided later.
The API is also incomplete and is missing unit repair.
Current version may recreate object if deleted by user (fixed on next version).
Did not understand something ? Encountered an issue ? Want to suggest an improvement for the API ?
Join the discord server for quick support.