mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-18 00:46:55 +01:00
updated expansion manager to actually... manage expansions
This commit is contained in:
parent
0a4150d63e
commit
656f9ad03c
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user