From e8c155763be355172f28b54c5ff3545d5182406f Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Wed, 15 Jul 2020 12:44:07 +0200 Subject: [PATCH] Register placeholders --- Bukkit/pom.xml | 2 +- .../src/main/java/com/plotsquared/bukkit/BukkitMain.java | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Bukkit/pom.xml b/Bukkit/pom.xml index c70676567..07e1a9ca7 100644 --- a/Bukkit/pom.xml +++ b/Bukkit/pom.xml @@ -87,7 +87,7 @@ be.maximvdw MVdWPlaceholderAPI - 3.1.1-SNAPSHOT + 2.1.1-SNAPSHOT compile diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java index 66bc5ed3c..5ee38078c 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java @@ -369,14 +369,11 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain< ChatFormatter.formatters.add(new PlaceholderFormatter()); } PlotSquared.log(Captions.PREFIX + "&6PlotSquared hooked into PlaceholderAPI"); - } else { - PlotSquared - .debug(Captions.PREFIX + "&6PlaceholderAPI is not in use. Hook deactivated."); } - if (Bukkit.getPluginManager().isPluginEnabled("MVdWPlaceholderAPI")) { + if (Bukkit.getPluginManager().getPlugin("MVdWPlaceholderAPI") != null) { new MVdWPlaceholders(this, PlotSquared.get().getPlaceholderRegistry()); - PlotSquared.log(Captions.PREFIX + "&cPlotSquared hooked into MVdWPlaceholderAPI"); + PlotSquared.log(Captions.PREFIX + "&6PlotSquared hooked into MVdWPlaceholderAPI"); } this.startMetrics();