Fix KCauldron dependency loading - closes #121
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user