diff --git a/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java b/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java index ba6b25428..b333e2070 100644 --- a/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java +++ b/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java @@ -132,6 +132,16 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin { // load some utilities early this.permissionRegistry = new AsyncPermissionRegistry(getBootstrap().getScheduler()); this.verboseHandler = new VerboseHandler(getBootstrap().getScheduler()); + + // load configuration + getLogger().info("Loading configuration..."); + ConfigurationAdapter configFileAdapter = provideConfigurationAdapter(); + this.configuration = new LuckPermsConfiguration(this, new MultiConfigurationAdapter(this, + new FileSecretConfigAdapter(this), + new SystemPropertyConfigAdapter(this), + new EnvironmentVariableConfigAdapter(this), + configFileAdapter + )); } public final void enable() { @@ -144,16 +154,6 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin { // setup log dispatcher instance early this.logDispatcher = new LogDispatcher(this); - // load configuration - getLogger().info("Loading configuration..."); - ConfigurationAdapter configFileAdapter = provideConfigurationAdapter(); - this.configuration = new LuckPermsConfiguration(this, new MultiConfigurationAdapter(this, - new FileSecretConfigAdapter(this), - new SystemPropertyConfigAdapter(this), - new EnvironmentVariableConfigAdapter(this), - configFileAdapter - )); - // setup a bytebin instance this.httpClient = new OkHttpClient.Builder() .callTimeout(15, TimeUnit.SECONDS)