diff --git a/src/main/java/net/hollowcube/minestom/extensions/ExtensionBootstrap.java b/src/main/java/net/hollowcube/minestom/extensions/ExtensionBootstrap.java index f4c5fb9..f811555 100644 --- a/src/main/java/net/hollowcube/minestom/extensions/ExtensionBootstrap.java +++ b/src/main/java/net/hollowcube/minestom/extensions/ExtensionBootstrap.java @@ -25,6 +25,7 @@ public final class ExtensionBootstrap { private ExtensionBootstrap(@NotNull MinecraftServer server) { this.server = server; extensions = new ExtensionManager(MinecraftServer.process()); + MinecraftServer.getSchedulerManager().buildShutdownTask(extensions::shutdown); extensions.start(); extensions.gotoPreInit();