mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-18 00:46:55 +01:00
Changed to use easier way.
This commit is contained in:
parent
9a2fb89e43
commit
5aaa9720c8
@ -21,9 +21,7 @@ public class ServerLoadEventListener implements Listener {
|
|||||||
final Map<String, PlaceholderHook> alreadyRegistered = PlaceholderAPI.getPlaceholders();
|
final Map<String, PlaceholderHook> alreadyRegistered = PlaceholderAPI.getPlaceholders();
|
||||||
plugin.getExpansionManager().registerAllExpansions();
|
plugin.getExpansionManager().registerAllExpansions();
|
||||||
if (alreadyRegistered != null && !alreadyRegistered.isEmpty()) {
|
if (alreadyRegistered != null && !alreadyRegistered.isEmpty()) {
|
||||||
alreadyRegistered.entrySet().stream().forEach(hook -> {
|
alreadyRegistered.forEach(PlaceholderAPI::registerPlaceholderHook);
|
||||||
PlaceholderAPI.registerPlaceholderHook(hook.getKey(), hook.getValue());
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user