Fix bug with PlaceholderAPI integration
This commit is contained in:
parent
f35c040af7
commit
4ce820d1cf
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user