Resolve NoClassDefFoundError with Parties installed, fixes #653

This commit is contained in:
BuildTools 2019-01-25 22:12:05 -05:00
parent 2561cda73a
commit 9f5ad772fc

View File

@ -115,8 +115,9 @@ public class Dependencies {
if (isPluginAvailable("mcMMO")) {
mcmmo = (mcMMO) plugin.getServer().getPluginManager().getPlugin("mcMMO");
}
if (plugin.getSettings().canUseGPS() && isPluginAvailable("GPS")) {
if (isPluginAvailable("GPS") && plugin.getSettings().canUseGPS()) {
gpsapi = new GPSAPI(plugin);
Vars.getInstance().setMaxDistanceToEntry(9999.0);
}
if (isPluginAvailable("Heroes")) {
heroes = (Heroes) plugin.getServer().getPluginManager().getPlugin("Heroes");
@ -132,7 +133,6 @@ public class Dependencies {
}
if (isPluginAvailable("Parties")) {
parties = Parties.getApi();
Vars.getInstance().setMaxDistanceToEntry(9999.0);
}
if (isPluginAvailable("Vault")) {
if (!setupEconomy()) {