Add color utility method

This commit is contained in:
extendedclip 2018-04-08 03:59:06 -04:00
parent 59539d591c
commit 134d18c71c

View File

@ -28,7 +28,10 @@ import java.util.Arrays;
public class Msg {
public static void msg(CommandSender s, String... msg) {
Arrays.stream(msg).forEach(text -> s.sendMessage(ChatColor.translateAlternateColorCodes('&', text)));
Arrays.stream(msg).forEach(text -> s.sendMessage(color(text)));
}
public static String color(String text) {
return ChatColor.translateAlternateColorCodes('&', text);
}
}