mirror of
				https://github.com/PlaceholderAPI/PlaceholderAPI
				synced 2025-10-31 06:12:28 +01:00 
			
		
		
		
	Changed Msg#msg to use method references
This commit is contained in:
		| @@ -28,7 +28,7 @@ import java.util.Arrays; | |||||||
| public class Msg { | public class Msg { | ||||||
|  |  | ||||||
| 	public static void msg(CommandSender s, String... msg) { | 	public static void msg(CommandSender s, String... msg) { | ||||||
| 		Arrays.stream(msg).forEach(text  -> s.sendMessage(color(text))); | 		Arrays.stream(msg).map(Msg::color).forEach(s::sendMessage); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public static String color(String text) { | 	public static String color(String text) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user