Someone forgot how to use lambdas properly (#111)

This commit is contained in:
Mitchell Cook 2019-05-07 06:21:15 +10:00 committed by Ryan
parent 927f942236
commit 9b317c2210

View File

@ -145,9 +145,7 @@ public class PlaceholderAPIPlugin extends JavaPlugin {
final Map<String, PlaceholderHook> 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);