From 4ce820d1cf18b39edbae969ad1d9e781977c3e64 Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Tue, 29 Jan 2019 09:24:30 +0100 Subject: [PATCH] Fix bug with PlaceholderAPI integration --- .../placeholderapi/IntegrationPlaceholderAPI.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/integration/placeholderapi/IntegrationPlaceholderAPI.java b/src/com/massivecraft/factions/integration/placeholderapi/IntegrationPlaceholderAPI.java index 1c2f1c5b..ab5efb2b 100644 --- a/src/com/massivecraft/factions/integration/placeholderapi/IntegrationPlaceholderAPI.java +++ b/src/com/massivecraft/factions/integration/placeholderapi/IntegrationPlaceholderAPI.java @@ -1,7 +1,6 @@ package com.massivecraft.factions.integration.placeholderapi; import com.massivecraft.massivecore.Integration; -import me.clip.placeholderapi.PlaceholderAPIPlugin; import org.bukkit.Bukkit; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; @@ -27,7 +26,7 @@ public class IntegrationPlaceholderAPI extends Integration @Override public void setIntegrationActiveInner(boolean active) { - PlaceholderAPIPlugin.getInstance().getExpansionManager().registerExpansion(PlaceholderFactions.get()); + PlaceholderFactions.get().register(); } public static void ensureRegistered() @@ -45,7 +44,7 @@ public class IntegrationPlaceholderAPI extends Integration if (str.startsWith("/")) str = str.substring(1); if (!str.startsWith("papi")) return; - Bukkit.getScheduler().runTaskLater(this.getPlugin(), IntegrationPlaceholderAPI::ensureRegistered, 20L); + Bukkit.getScheduler().runTaskLater(this.getPlugin(), IntegrationPlaceholderAPI::ensureRegistered, 10L); }