Skip linking with mcMMO if disabled, for #526

This commit is contained in:
BuildTools 2018-11-18 16:55:46 -05:00
parent 4f70cb6aea
commit 71b0adfb4e

View File

@ -409,9 +409,13 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
if (getServer().getPluginManager().getPlugin("Denizen") != null) {
denizen = (Denizen) getServer().getPluginManager().getPlugin("Denizen");
}
if (getServer().getPluginManager().getPlugin("mcMMO") != null) {
if (getServer().getPluginManager().getPlugin("mcMMO") != null ) {
if (!getServer().getPluginManager().getPlugin("mcMMO").isEnabled()) {
getLogger().warning("mcMMO was detected, but is not enabled! Fix mcMMO to allow linkage.");
} else {
mcmmo = (mcMMO) getServer().getPluginManager().getPlugin("mcMMO");
}
}
if (getServer().getPluginManager().getPlugin("Heroes") != null) {
heroes = (Heroes) getServer().getPluginManager().getPlugin("Heroes");
}