diff --git a/src/main/java/me/clip/placeholderapi/expansion/ExpansionManager.java b/src/main/java/me/clip/placeholderapi/expansion/ExpansionManager.java index e1eb341..9f827e6 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/ExpansionManager.java +++ b/src/main/java/me/clip/placeholderapi/expansion/ExpansionManager.java @@ -56,6 +56,21 @@ public final class ExpansionManager } } + + public void initializeExpansions() + { + plugin.getLogger().info("Placeholder expansion registration initializing..."); + + final Map registered = PlaceholderAPI.getPlaceholders(); + registerAllExpansions(); + + if (!registered.isEmpty()) { + registered.forEach(PlaceholderAPI::registerPlaceholderHook); + } + } + + + public PlaceholderExpansion getRegisteredExpansion(String name) { for (Entry hook : PlaceholderAPI.getPlaceholders().entrySet())