Merge pull request #13 from Sxtanna/master

Changed Msg#msg to use method references
This commit is contained in:
Ryan 2018-04-19 00:21:15 -04:00 committed by GitHub
commit 1789c3b183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {