File file = new File(plugin.getJarPath());
PropertiesFile inf = new PropertiesFile(file.getAbsolutePath(), "Canary.inf");
pluginInf.put(plugin.getClass().getSimpleName(), inf);
if (testDependencies(plugin)) { // Test for changes
CanaryClassLoader ploader = new CanaryClassLoader(new File(inf.getString("jarPath")).toURI().toURL(), getClass().getClassLoader());
Class<?> cls = ploader.loadClass(inf.getString("main-class"));
plugin = (Plugin) cls.newInstance();
enabled = plugin.enable();
plugins.put(plugin.getName(), plugin);
}
}