-
Notifications
You must be signed in to change notification settings - Fork 0
Home
alexcrea edited this page Jul 13, 2024
·
30 revisions
Just drop the plugin jar to /plugin
on a spigot or fork of spigot, restart, and it should work.
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 and config if needed.
- (Optional) Also register bulk operation for optimization if possible.
You can also register Custom anvil recipe if you like to.
Custom Anvil is available on Maven Central
Make sure mavenCentral()
is present in your gradle repositories
<dependency>
<groupId>xyz.alexcrea</groupId>
<artifactId>CustomAnvil</artifactId>
<version>1.5.2</version>
</dependency>
dependencies {
implementation 'xyz.alexcrea:CustomAnvil:1.5.2'
}
dependencies {
implementation("xyz.alexcrea:CustomAnvil:1.5.2")
}
Right now, documentation is incomplete and more page will be provided later.