From: David ‘Bombe’ Roden Date: Sat, 13 Jul 2019 00:24:17 +0000 (+0200) Subject: 🚧 Try different method of loading classes for logging X-Git-Tag: v81^2~187 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=be10b4070e23ecf5ab181612a47440e29de442e2;p=Sone.git 🚧 Try different method of loading classes for logging --- diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index f2cf128..7c32db7 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -55,7 +55,7 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr .build(new CacheLoader>() { @Override public Class load(String key) throws Exception { - return Class.forName(key); + return SonePlugin.class.getClassLoader().loadClass(key); } });