3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Load legacy config file before firing PlatformsRegisteredEvent (#1623)

Fixes #1622

Co-authored-by: Alex <mc.cache@web.de>
Dieser Commit ist enthalten in:
Jordan 2022-02-24 10:33:06 +01:00 committet von GitHub
Ursprung 28a0239437
Commit 49d5183685
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -183,6 +183,8 @@ public class WorldEditPlugin extends JavaPlugin {
new FaweBukkit(this);
//FAWE end
config.load(); // Load config before we say we've loaded platforms as it is used in listeners of the event
WorldEdit.getInstance().getEventBus().post(new PlatformsRegisteredEvent());
PermissionsResolverManager.initialize(this); // Setup permission resolver
@ -228,7 +230,6 @@ public class WorldEditPlugin extends JavaPlugin {
private void setupPreWorldData() {
loadAdapter();
config.load();
WorldEdit.getInstance().loadMappings();
}