mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-09-05 17:07:06 +02:00
Someone forgot how to use lambdas properly (#111)
This commit is contained in:
@@ -145,9 +145,7 @@ public class PlaceholderAPIPlugin extends JavaPlugin {
|
|||||||
final Map<String, PlaceholderHook> alreadyRegistered = PlaceholderAPI.getPlaceholders();
|
final Map<String, PlaceholderHook> alreadyRegistered = PlaceholderAPI.getPlaceholders();
|
||||||
getExpansionManager().registerAllExpansions();
|
getExpansionManager().registerAllExpansions();
|
||||||
if (alreadyRegistered != null && !alreadyRegistered.isEmpty()) {
|
if (alreadyRegistered != null && !alreadyRegistered.isEmpty()) {
|
||||||
alreadyRegistered.entrySet().stream().forEach(hook -> {
|
alreadyRegistered.entrySet().stream().forEach(hook -> PlaceholderAPI.registerPlaceholderHook(hook.getKey(), hook.getValue()));
|
||||||
PlaceholderAPI.registerPlaceholderHook(hook.getKey(), hook.getValue());
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 20*15);
|
}, 20*15);
|
||||||
|
Reference in New Issue
Block a user