Updated extension versions

This commit is contained in:
Rsl1122 2019-03-31 13:15:18 +03:00
parent ee795b7702
commit 49c1660134
2 changed files with 10 additions and 6 deletions

View File

@ -1,10 +1,10 @@
dependencies {
compile project(path: ":api")
compile "com.djrapitops:Extension-AdvancedAchievements:1.1-R0.1"
compile "com.djrapitops:Extension-AdvancedBan:2.1.5-R0.4"
compile "com.djrapitops:Extension-BanManager:5.15.0-R0.3"
compile "com.djrapitops:Extension-DiscordSRV:1.16.6-R0.1"
compile "com.djrapitops:Extension-EssentialsX:2.15.0-R0.1"
compile "com.djrapitops:Extension-AdvancedAchievements:1.1-R0.2"
compile "com.djrapitops:Extension-AdvancedBan:2.1.5-R0.5"
compile "com.djrapitops:Extension-BanManager:5.15.0-R0.4"
compile "com.djrapitops:Extension-DiscordSRV:1.16.6-R0.2"
compile "com.djrapitops:Extension-EssentialsX:2.15.0-R0.2"
compile "com.djrapitops:Extension-Sponge-Economy:7.1.0-R0.1"
}

View File

@ -21,6 +21,7 @@ import com.djrapitops.plan.extension.ExtensionService;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.util.function.Function;
/**
* In charge of registering built in {@link com.djrapitops.plan.extension.DataExtension} implementations.
@ -44,7 +45,10 @@ public class ExtensionRegister {
new AdvancedBanExtensionFactory().createExtension().ifPresent(extensionService::register);
new BanManagerExtensionFactory().createExtension().ifPresent(extensionService::register);
new DiscordSRVExtensionFactory().createExtension().ifPresent(extensionService::register);
new EssentialsExtensionFactory().createExtension().ifPresent(extensionService::register);
EssentialsExtensionFactory essentials = new EssentialsExtensionFactory();
essentials.createExtension()
.map(extensionService::register).flatMap(Function.identity()) // If the extension was registered this is present.
.ifPresent(essentials::registerUpdateListeners);
new SpongeEconomyExtensionFactory().createExtension().ifPresent(extensionService::register);
}