Merge pull request #1 from FlyingPikachu/master

dd
This commit is contained in:
BerndiVader 2019-01-26 09:53:23 +01:00 committed by GitHub
commit 67248f5692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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