Disallow native loading of mcMMO Overhaul, per #853

This commit is contained in:
PikaMug 2019-07-19 00:13:53 -04:00
parent d7c9a85021
commit 59ae04a05d

View File

@ -129,7 +129,12 @@ public class Dependencies {
denizen = (Denizen) plugin.getServer().getPluginManager().getPlugin("Denizen");
}
if (isPluginAvailable("mcMMO")) {
try {
Class.forName("com.gmail.nossr50.datatypes.skills.SkillType");
mcmmo = (mcMMO) plugin.getServer().getPluginManager().getPlugin("mcMMO");
} catch (Exception e) {
// Unsupported version
}
}
if (isPluginAvailable("Heroes")) {
heroes = (Heroes) plugin.getServer().getPluginManager().getPlugin("Heroes");