mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +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
|
||||
hooksManager = new HooksManager(this);
|
||||
hooksManager.registerHook(new VaultHook());
|
||||
hooksManager.registerHook(new PlaceholderAPIHook());
|
||||
if (getServer().getPluginManager().isPluginEnabled("PlaceholderAPI")
|
||||
|| getServer().getPluginManager().isPluginEnabled("MVdWPlaceholderAPI")) {
|
||||
hooksManager.registerHook(new PlaceholderAPIHook());
|
||||
}
|
||||
|
||||
// Setup the Placeholders manager
|
||||
placeholdersManager = new PlaceholdersManager(this);
|
||||
|
Loading…
Reference in New Issue
Block a user