mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 19:47:49 +01:00
Updated extension versions
This commit is contained in:
parent
ee795b7702
commit
49c1660134
@ -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"
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user