🚧 Try different method of loading classes for logging
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 13 Jul 2019 00:24:17 +0000 (02:24 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 13 Jul 2019 00:24:17 +0000 (02:24 +0200)
src/main/java/net/pterodactylus/sone/main/SonePlugin.java

index f2cf128..7c32db7 100644 (file)
@@ -55,7 +55,7 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr
                                        .build(new CacheLoader<String, Class<?>>() {
                                                @Override
                                                public Class<?> load(String key) throws Exception {
-                                                       return Class.forName(key);
+                                                       return SonePlugin.class.getClassLoader().loadClass(key);
                                                }
                                        });