From 134d18c71cc254e762608b65b062b08064055072 Mon Sep 17 00:00:00 2001 From: extendedclip Date: Sun, 8 Apr 2018 03:59:06 -0400 Subject: [PATCH] Add color utility method --- src/main/java/me/clip/placeholderapi/util/Msg.java | 5 ++++- 1 file changed, 4 insertions(+), 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 23a51c2..6ba0d0d 100644 --- a/src/main/java/me/clip/placeholderapi/util/Msg.java +++ b/src/main/java/me/clip/placeholderapi/util/Msg.java @@ -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); + } }