diff --git a/src/main/java/me/clip/placeholderapi/ServerLoadEventListener.java b/src/main/java/me/clip/placeholderapi/ServerLoadEventListener.java index 93a8be2..8c68987 100644 --- a/src/main/java/me/clip/placeholderapi/ServerLoadEventListener.java +++ b/src/main/java/me/clip/placeholderapi/ServerLoadEventListener.java @@ -21,9 +21,7 @@ public class ServerLoadEventListener implements Listener { final Map alreadyRegistered = PlaceholderAPI.getPlaceholders(); plugin.getExpansionManager().registerAllExpansions(); if (alreadyRegistered != null && !alreadyRegistered.isEmpty()) { - alreadyRegistered.entrySet().stream().forEach(hook -> { - PlaceholderAPI.registerPlaceholderHook(hook.getKey(), hook.getValue()); - }); + alreadyRegistered.forEach(PlaceholderAPI::registerPlaceholderHook); } } }