updated expansion manager to actually... manage expansions

This commit is contained in:
Sxtanna 2020-07-22 20:40:15 -04:00
parent 0a4150d63e
commit 656f9ad03c

View File

@ -56,6 +56,21 @@ public final class ExpansionManager
}
}
public void initializeExpansions()
{
plugin.getLogger().info("Placeholder expansion registration initializing...");
final Map<String, PlaceholderHook> registered = PlaceholderAPI.getPlaceholders();
registerAllExpansions();
if (!registered.isEmpty()) {
registered.forEach(PlaceholderAPI::registerPlaceholderHook);
}
}
public PlaceholderExpansion getRegisteredExpansion(String name)
{
for (Entry<String, PlaceholderHook> hook : PlaceholderAPI.getPlaceholders().entrySet())