Always initialize PermissionHandler (fixes #3019)

This commit is contained in:
SirYwell 2021-05-18 21:17:47 +02:00
parent e97bc25fb8
commit 94ba90d694

View File

@ -353,10 +353,12 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl
this.registerCommands(); this.registerCommands();
} }
// Permissions
this.permissionHandler().initialize();
// Economy // Economy
if (Settings.Enabled_Components.ECONOMY) { if (Settings.Enabled_Components.ECONOMY) {
TaskManager.runTaskAsync(() -> { TaskManager.runTaskAsync(() -> {
this.permissionHandler().initialize();
final EconHandler econHandler = injector().getInstance(EconHandler.class); final EconHandler econHandler = injector().getInstance(EconHandler.class);
econHandler.init(); econHandler.init();
}); });