From fcc5bc438112b222e80c2845de0a468d51b2af84 Mon Sep 17 00:00:00 2001 From: themode Date: Tue, 12 Jan 2021 04:22:24 +0100 Subject: [PATCH] Improve bootstrap warning --- .../java/net/minestom/server/extensions/ExtensionManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/extensions/ExtensionManager.java b/src/main/java/net/minestom/server/extensions/ExtensionManager.java index 0bd50f009..6d2ded208 100644 --- a/src/main/java/net/minestom/server/extensions/ExtensionManager.java +++ b/src/main/java/net/minestom/server/extensions/ExtensionManager.java @@ -479,7 +479,9 @@ public class ExtensionManager { private void setupCodeModifiers(@NotNull List extensions) { final ClassLoader cl = getClass().getClassLoader(); if (!(cl instanceof MinestomRootClassLoader)) { - LOGGER.warn("Current class loader is not a MinestomOverwriteClassLoader, but {}. This disables code modifiers (Mixin support is therefore disabled)", cl); + LOGGER.warn("Current class loader is not a MinestomOverwriteClassLoader, but {}. " + + "This disables code modifiers (Mixin support is therefore disabled). " + + "This can be fixed by starting your server using Bootstrap#bootstrap (optional).", cl); return; } MinestomRootClassLoader modifiableClassLoader = (MinestomRootClassLoader) cl;