From ae9e030aae1a7d14ba9b6b91e5c2bb0870695ab3 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 2 Feb 2019 12:29:16 -0800 Subject: [PATCH] Moves placeholder manager initialization to before addon loading This enables addons to register placeholders when they are enabled. --- src/main/java/world/bentobox/bentobox/BentoBox.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/BentoBox.java b/src/main/java/world/bentobox/bentobox/BentoBox.java index 4e6379456..484d32bcd 100644 --- a/src/main/java/world/bentobox/bentobox/BentoBox.java +++ b/src/main/java/world/bentobox/bentobox/BentoBox.java @@ -142,6 +142,8 @@ public class BentoBox extends JavaPlugin { hooksManager = new HooksManager(this); hooksManager.registerHook(new VaultHook()); hooksManager.registerHook(new PlaceholderAPIHook()); + // Setup the Placeholders manager + placeholdersManager = new PlaceholdersManager(this); // Load addons. Addons may load worlds, so they must go before islands are loaded. addonsManager = new AddonsManager(this); @@ -176,9 +178,6 @@ public class BentoBox extends JavaPlugin { hooksManager.registerHook(new MultiverseCoreHook()); islandWorldManager.registerWorldsToMultiverse(); - // Setup the Placeholders manager - placeholdersManager = new PlaceholdersManager(this); - // Show banner User.getInstance(Bukkit.getConsoleSender()).sendMessage("successfully-loaded", TextVariables.VERSION, instance.getDescription().getVersion(),