mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-18 00:46:55 +01:00
Add color utility method
This commit is contained in:
parent
59539d591c
commit
134d18c71c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user