Fixed extensions

This commit is contained in:
Auxilor 2020-11-03 21:45:10 +00:00
parent 85a3de0f67
commit 8d016f12b5

View File

@ -70,11 +70,11 @@ public class ExtensionManager {
String mainClass = extensionYml.getString("main");
String name = extensionYml.getString("name");
Class<?> cls = null;
Class<?> cls;
Object object = null;
try {
object = cls.newInstance();
cls = cl.loadClass(mainClass);
object = cls.newInstance();
} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
e.printStackTrace();
}