Registered AdvancedBan extension

This commit is contained in:
Rsl1122 2019-03-24 13:46:11 +02:00
parent 099330ebd7
commit 60f5571e42
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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);
}
}