Fix KCauldron dependency loading - closes #121

This commit is contained in:
Luck committed 2017-01-09 18:20:03 +00:00
1 parent 7042c45deb
commit 055d181c67
5 files changed
+43 -1

No files matched your search

@@ -215,6 +215,18 @@ public interface LuckPermsPlugin {
*/
PlatformType getType();
/**
* Gets the name or "brand" of the running platform
* @return the server brand
*/
String getServerName();
/**
* Gets the version of the running platform
* @return the server version
*/
String getServerVersion();
/**
* Gets the plugins main directory
*
@@ -130,7 +130,7 @@ public class DependencyManager {
private static void loadJar(LuckPermsPlugin plugin, File file, String baseClass) throws Exception {
URLClassLoader classLoader = (URLClassLoader) plugin.getClass().getClassLoader();
if (plugin.getType() != PlatformType.SPONGE) {
if (plugin.getType() != PlatformType.SPONGE && !plugin.getServerName().equals("KCauldron")) {
classLoader = (URLClassLoader) classLoader.getParent();
}