Interface ModuleBootstrap
bootstrapper: in a module's own plugin.yml.
Called once on the server startup thread before any world loads, for an admitted module only.
The implementation must have a public no-argument constructor and live in that module's JAR.
No Bukkit server, plugin instances, IoC services or worlds are available here. Use only the module's own classes, the framework and the server API; do not reference other plugins' classes. A thrown exception or error prevents only this module from loading at this start, except that virtual machine failures may propagate. Enable observes updated modules and may restore an old copy; check that phase's log before changing module JARs. An overall framework preparation failure is retained and reported during enable, which disables the framework. No order is promised between different modules' bootstrappers.
Declarations made through the context take effect only if this method returns normally; if it throws, none of them are written. Removing a module that added custom content has permanent effects on worlds; see COMPATIBILITY.md.
- Since:
- 7.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidbootstrap(ModuleBootstrapContext context) Performs the module's early startup work.
-
Method Details
-
bootstrap
Performs the module's early startup work.- Parameters:
context- the framework-supplied identity and logger of this module- Throws:
Exception- when the module cannot finish its early startup
-