From 9b317c221078f1f1a7caff9fd0b1d5c9f2648a5e Mon Sep 17 00:00:00 2001 From: Mitchell Cook Date: Tue, 7 May 2019 06:21:15 +1000 Subject: [PATCH] Someone forgot how to use lambdas properly (#111) --- .../java/me/clip/placeholderapi/PlaceholderAPIPlugin.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java b/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java index 20262a8..4f5d69e 100644 --- a/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java +++ b/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java @@ -145,9 +145,7 @@ public class PlaceholderAPIPlugin extends JavaPlugin { final Map alreadyRegistered = PlaceholderAPI.getPlaceholders(); getExpansionManager().registerAllExpansions(); if (alreadyRegistered != null && !alreadyRegistered.isEmpty()) { - alreadyRegistered.entrySet().stream().forEach(hook -> { - PlaceholderAPI.registerPlaceholderHook(hook.getKey(), hook.getValue()); - }); + alreadyRegistered.entrySet().stream().forEach(hook -> PlaceholderAPI.registerPlaceholderHook(hook.getKey(), hook.getValue())); } } }, 20*15);