mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 11:45:31 +01:00
parent
6155a8cf80
commit
b07d7ba3af
@ -137,6 +137,12 @@ public class BentoBox extends JavaPlugin {
|
||||
// Locales manager must be loaded before addons
|
||||
localesManager = new LocalesManager(this);
|
||||
|
||||
// Load hooks
|
||||
hooksManager = new HooksManager(this);
|
||||
hooksManager.registerHook(new VaultHook());
|
||||
hooksManager.registerHook(new PlaceholderAPIHook());
|
||||
hooksManager.registerHook(new MultiverseCoreHook());
|
||||
|
||||
// Load addons. Addons may load worlds, so they must go before islands are loaded.
|
||||
addonsManager = new AddonsManager(this);
|
||||
addonsManager.loadAddons();
|
||||
@ -165,12 +171,6 @@ public class BentoBox extends JavaPlugin {
|
||||
metrics.registerMetrics();
|
||||
}
|
||||
|
||||
// Load hooks
|
||||
hooksManager = new HooksManager(this);
|
||||
hooksManager.registerHook(new VaultHook());
|
||||
hooksManager.registerHook(new PlaceholderAPIHook());
|
||||
hooksManager.registerHook(new MultiverseCoreHook());
|
||||
|
||||
// Make sure all worlds are already registered to Multiverse.
|
||||
islandWorldManager.registerWorldsToMultiverse();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user