Paper
Paper copied to clipboard
Add datapack registration lifecycle event
Replaces https://github.com/PaperMC/Paper/pull/8865. Way better to be able to set it up as you like instead of one hardcoded in the paper-plugin.yml.
- [x] deal with `Datapack#setEnabled` (weird to call it in the lifecycle event)
- [ ] Update original datapack API patch
I've added additional methods to the DatapackRegistrar to get previously discovered packs as well as remove previously discovered packs.