Check if dependency is enabled (Fixes #181)

This commit is contained in:
Phoenix616 2018-11-12 15:03:13 +01:00
parent 727f49fc28
commit b17a471c21

View File

@ -57,7 +57,7 @@ public class Dependencies {
for (String dependency : ChestShop.getDependencies()) {
Plugin plugin = pluginManager.getPlugin(dependency);
if (plugin != null) {
if (plugin != null && plugin.isEnabled()) {
loadPlugin(dependency, plugin);
}
}