mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-09-06 05:17:05 +02:00
updated expansion manager to actually... manage expansions
This commit is contained in:
@@ -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)
|
public PlaceholderExpansion getRegisteredExpansion(String name)
|
||||||
{
|
{
|
||||||
for (Entry<String, PlaceholderHook> hook : PlaceholderAPI.getPlaceholders().entrySet())
|
for (Entry<String, PlaceholderHook> hook : PlaceholderAPI.getPlaceholders().entrySet())
|
||||||
|
Reference in New Issue
Block a user