mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 23:26:11 +01:00
Skip linking with mcMMO if disabled, for #526
This commit is contained in:
parent
4f70cb6aea
commit
71b0adfb4e
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user