From e336eccd9ac7b13f8a188b74aeb8200764712b03 Mon Sep 17 00:00:00 2001 From: Sxtanna Date: Wed, 18 Apr 2018 23:36:47 -0400 Subject: [PATCH] Changed Msg#msg to use method references --- src/main/java/me/clip/placeholderapi/util/Msg.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/clip/placeholderapi/util/Msg.java b/src/main/java/me/clip/placeholderapi/util/Msg.java index 6ba0d0d..efa8bdc 100644 --- a/src/main/java/me/clip/placeholderapi/util/Msg.java +++ b/src/main/java/me/clip/placeholderapi/util/Msg.java @@ -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) {