Little refactoring...

This commit is contained in:
extendedclip
2018-03-23 17:03:56 -04:00
parent 68fb8e7e65
commit af68dbcf8b
5 changed files with 130 additions and 132 deletions

View File

@@ -23,10 +23,13 @@ package me.clip.placeholderapi.util;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import java.util.Arrays;
public class Msg {
public static void msg(CommandSender s, String msg) {
s.sendMessage(ChatColor.translateAlternateColorCodes('&', msg));
public static void msg(CommandSender s, String... msg) {
Arrays.stream(msg).forEach(text ->
s.sendMessage(ChatColor.translateAlternateColorCodes('&', text)));
}
}