From 4c55c642bdc175924925bf44326aa96d6fff8ad8 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Fri, 4 Oct 2019 20:18:52 +0300 Subject: [PATCH] Fixed Placeholder Registration on Bukkit 1.14 --- Plan/bukkit/src/main/java/com/djrapitops/plan/Plan.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Plan/bukkit/src/main/java/com/djrapitops/plan/Plan.java b/Plan/bukkit/src/main/java/com/djrapitops/plan/Plan.java index faeb02dcd..e13e916bd 100644 --- a/Plan/bukkit/src/main/java/com/djrapitops/plan/Plan.java +++ b/Plan/bukkit/src/main/java/com/djrapitops/plan/Plan.java @@ -85,7 +85,12 @@ public class Plan extends BukkitPlugin implements PlanPlugin { private void registerPlaceholderAPIExtension() { try { if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) { - PlaceholderRegistrar.register(system, errorHandler); + runnableFactory.create("Placeholders Registrar", new AbsRunnable() { + @Override + public void run() { + PlaceholderRegistrar.register(system, errorHandler); + } + }).runTask(); } } catch (Exception | NoClassDefFoundError | NoSuchMethodError failed) { logger.warn("Failed to register PlaceholderAPI placeholders: " + failed.toString());