mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Load legacy config file before firing PlatformsRegisteredEvent (#1623)
Fixes #1622 Co-authored-by: Alex <mc.cache@web.de>
This commit is contained in:
parent
28a0239437
commit
49d5183685
@ -183,6 +183,8 @@ public class WorldEditPlugin extends JavaPlugin {
|
|||||||
new FaweBukkit(this);
|
new FaweBukkit(this);
|
||||||
//FAWE end
|
//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());
|
WorldEdit.getInstance().getEventBus().post(new PlatformsRegisteredEvent());
|
||||||
|
|
||||||
PermissionsResolverManager.initialize(this); // Setup permission resolver
|
PermissionsResolverManager.initialize(this); // Setup permission resolver
|
||||||
@ -228,7 +230,6 @@ public class WorldEditPlugin extends JavaPlugin {
|
|||||||
|
|
||||||
private void setupPreWorldData() {
|
private void setupPreWorldData() {
|
||||||
loadAdapter();
|
loadAdapter();
|
||||||
config.load();
|
|
||||||
WorldEdit.getInstance().loadMappings();
|
WorldEdit.getInstance().loadMappings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user