mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-23 16:41:42 +01:00
Moves placeholder manager initialization to before addon loading
This enables addons to register placeholders when they are enabled.
This commit is contained in:
parent
8b2ca8db23
commit
ae9e030aae
@ -142,6 +142,8 @@ public class BentoBox extends JavaPlugin {
|
|||||||
hooksManager = new HooksManager(this);
|
hooksManager = new HooksManager(this);
|
||||||
hooksManager.registerHook(new VaultHook());
|
hooksManager.registerHook(new VaultHook());
|
||||||
hooksManager.registerHook(new PlaceholderAPIHook());
|
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.
|
// Load addons. Addons may load worlds, so they must go before islands are loaded.
|
||||||
addonsManager = new AddonsManager(this);
|
addonsManager = new AddonsManager(this);
|
||||||
@ -176,9 +178,6 @@ public class BentoBox extends JavaPlugin {
|
|||||||
hooksManager.registerHook(new MultiverseCoreHook());
|
hooksManager.registerHook(new MultiverseCoreHook());
|
||||||
islandWorldManager.registerWorldsToMultiverse();
|
islandWorldManager.registerWorldsToMultiverse();
|
||||||
|
|
||||||
// Setup the Placeholders manager
|
|
||||||
placeholdersManager = new PlaceholdersManager(this);
|
|
||||||
|
|
||||||
// Show banner
|
// Show banner
|
||||||
User.getInstance(Bukkit.getConsoleSender()).sendMessage("successfully-loaded",
|
User.getInstance(Bukkit.getConsoleSender()).sendMessage("successfully-loaded",
|
||||||
TextVariables.VERSION, instance.getDescription().getVersion(),
|
TextVariables.VERSION, instance.getDescription().getVersion(),
|
||||||
|
Loading…
Reference in New Issue
Block a user