From 5aaa9720c8a3111b78f114d4fb3023cb1251443e Mon Sep 17 00:00:00 2001 From: darbyjack Date: Wed, 8 May 2019 15:05:30 -0500 Subject: [PATCH] Changed to use easier way. --- .../java/me/clip/placeholderapi/ServerLoadEventListener.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); } } }