mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 15:44:49 +08:00
Registered AdvancedBan extension
This commit is contained in:
parent
099330ebd7
commit
60f5571e42
@ -1,6 +1,7 @@
|
||||
dependencies {
|
||||
compile project(path: ":api")
|
||||
compile "com.djrapitops:Extension-AdvancedAchievements:1.1-R0.1"
|
||||
compile "com.djrapitops:Extension-AdvancedBan:2.1.5-R0.3"
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
|
@ -17,6 +17,7 @@
|
||||
package com.djrapitops.plan.extension.implementation;
|
||||
|
||||
import com.djrapitops.extension.AdvancedAchievementsExtensionFactory;
|
||||
import com.djrapitops.extension.AdvancedBanExtensionFactory;
|
||||
import com.djrapitops.plan.extension.ExtensionService;
|
||||
|
||||
import javax.inject.Inject;
|
||||
@ -37,10 +38,11 @@ public class ExtensionRegister {
|
||||
|
||||
public void registerBuiltInExtensions() {
|
||||
// No need to catch exceptions here,
|
||||
// this method will not be called unless Plan has enabled properly
|
||||
// registerBuiltInExtensions method will not be called unless Plan has enabled properly
|
||||
ExtensionService extensionService = ExtensionService.getInstance();
|
||||
|
||||
new AdvancedAchievementsExtensionFactory().createExtension().ifPresent(extensionService::register);
|
||||
new AdvancedBanExtensionFactory().createExtension().ifPresent(extensionService::register);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user