mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-23 22:52:48 +02:00
Init VerboseHandler earlier (#3932)
This commit is contained in:
@@ -92,10 +92,10 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
|
|||||||
// init during load
|
// init during load
|
||||||
private DependencyManager dependencyManager;
|
private DependencyManager dependencyManager;
|
||||||
private TranslationManager translationManager;
|
private TranslationManager translationManager;
|
||||||
|
private PermissionRegistry permissionRegistry;
|
||||||
|
private VerboseHandler verboseHandler;
|
||||||
|
|
||||||
// init during enable
|
// init during enable
|
||||||
private VerboseHandler verboseHandler;
|
|
||||||
private PermissionRegistry permissionRegistry;
|
|
||||||
private LogDispatcher logDispatcher;
|
private LogDispatcher logDispatcher;
|
||||||
private LuckPermsConfiguration configuration;
|
private LuckPermsConfiguration configuration;
|
||||||
private OkHttpClient httpClient;
|
private OkHttpClient httpClient;
|
||||||
@@ -129,6 +129,7 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
|
|||||||
|
|
||||||
// load some utilities early
|
// load some utilities early
|
||||||
this.permissionRegistry = new PermissionRegistry(getBootstrap().getScheduler());
|
this.permissionRegistry = new PermissionRegistry(getBootstrap().getScheduler());
|
||||||
|
this.verboseHandler = new VerboseHandler(getBootstrap().getScheduler());
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void enable() {
|
public final void enable() {
|
||||||
@@ -138,8 +139,7 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
|
|||||||
// send the startup banner
|
// send the startup banner
|
||||||
Message.STARTUP_BANNER.send(getConsoleSender(), getBootstrap());
|
Message.STARTUP_BANNER.send(getConsoleSender(), getBootstrap());
|
||||||
|
|
||||||
// load some utilities early
|
// setup log dispatcher instance early
|
||||||
this.verboseHandler = new VerboseHandler(getBootstrap().getScheduler());
|
|
||||||
this.logDispatcher = new LogDispatcher(this);
|
this.logDispatcher = new LogDispatcher(this);
|
||||||
|
|
||||||
// load configuration
|
// load configuration
|
||||||
|
Reference in New Issue
Block a user