mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-11-16 07:35:32 +01:00
Merge pull request #13 from Sxtanna/master
Changed Msg#msg to use method references
This commit is contained in:
commit
1789c3b183
@ -28,7 +28,7 @@ import java.util.Arrays;
|
||||
public class Msg {
|
||||
|
||||
public static void msg(CommandSender s, String... msg) {
|
||||
Arrays.stream(msg).forEach(text -> s.sendMessage(color(text)));
|
||||
Arrays.stream(msg).map(Msg::color).forEach(s::sendMessage);
|
||||
}
|
||||
|
||||
public static String color(String text) {
|
||||
|
Loading…
Reference in New Issue
Block a user