mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-01 07:03:26 +01:00
Add check for PlaceholderAPI before hooking into it.
https://github.com/BentoBoxWorld/bentobox/issues/322
This commit is contained in:
parent
3e284b90eb
commit
c7f253fddd
@ -147,7 +147,10 @@ public class BentoBox extends JavaPlugin {
|
|||||||
// Load hooks
|
// Load hooks
|
||||||
hooksManager = new HooksManager(this);
|
hooksManager = new HooksManager(this);
|
||||||
hooksManager.registerHook(new VaultHook());
|
hooksManager.registerHook(new VaultHook());
|
||||||
|
if (getServer().getPluginManager().isPluginEnabled("PlaceholderAPI")
|
||||||
|
|| getServer().getPluginManager().isPluginEnabled("MVdWPlaceholderAPI")) {
|
||||||
hooksManager.registerHook(new PlaceholderAPIHook());
|
hooksManager.registerHook(new PlaceholderAPIHook());
|
||||||
|
}
|
||||||
|
|
||||||
// Setup the Placeholders manager
|
// Setup the Placeholders manager
|
||||||
placeholdersManager = new PlaceholdersManager(this);
|
placeholdersManager = new PlaceholdersManager(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user