File tree Expand file tree Collapse file tree
plugin/src/main/java/net/thenextlvl/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import io .papermc .paper .plugin .bootstrap .BootstrapContext ;
44import io .papermc .paper .plugin .bootstrap .PluginBootstrap ;
5+ import io .papermc .paper .plugin .bootstrap .PluginProviderContext ;
6+ import org .bukkit .plugin .java .JavaPlugin ;
57import org .jspecify .annotations .NullMarked ;
68
79import java .util .ArrayList ;
@@ -14,10 +16,16 @@ public class ServiceBootstrapper implements PluginBootstrap {
1416
1517 @ Override
1618 public void bootstrap (BootstrapContext context ) {
19+ }
20+
21+ @ Override
22+ public JavaPlugin createPlugin (PluginProviderContext context ) {
23+ var plugin = PluginBootstrap .super .createPlugin (context );
1724 if (COMPATIBILITY_MODE ) enableCompatibilityMode (context );
25+ return plugin ;
1826 }
1927
20- private void enableCompatibilityMode (BootstrapContext context ) {
28+ private void enableCompatibilityMode (PluginProviderContext context ) {
2129 var logger = context .getLogger ();
2230 try {
2331 var meta = context .getConfiguration ();
You can’t perform that action at this time.
0 commit comments