Fix KCauldron dependency loading - closes #121

This commit is contained in:
Luck
2017-01-09 18:20:03 +00:00
Unverified
parent 7042c45deb
commit 055d181c67
5 changed files with 43 additions and 1 deletions
@@ -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();
}