From 49d5183685fd09aa047f383fa8fd8b50e2394800 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 24 Feb 2022 10:33:06 +0100 Subject: [PATCH] Load legacy config file before firing PlatformsRegisteredEvent (#1623) Fixes #1622 Co-authored-by: Alex --- .../main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 37f743e1c..d5605137a 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -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(); }