mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-09-08 00:46:15 +02:00
Little refactoring...
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user