From 656f9ad03c26a396564ce026b832ee80ce48698f Mon Sep 17 00:00:00 2001 From: Sxtanna Date: Wed, 22 Jul 2020 20:40:15 -0400 Subject: [PATCH] updated expansion manager to actually... manage expansions --- .../expansion/ExpansionManager.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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())