private void registerClass(String className) {
try {
Class<?> c = Class.forName("me.eren.skcheese.elements." + className);
c.getConstructor().newInstance();
} catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException |
InvocationTargetException exception) {
getLogger().log(Level.SEVERE, "Failed to load the addon class " + className, exception);
}
}
private void registerClass(String className) {
try {
Class<?> c = Class.forName("me.eren.skcheese.elements." + className);
c.getConstructor().newInstance();
} catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException |
InvocationTargetException exception) {
getLogger().log(Level.SEVERE, "Failed to load the addon class " + className, exception);
}
}