mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed extensions
This commit is contained in:
parent
85a3de0f67
commit
8d016f12b5
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user