package team.unstudio.udpl.util;

import org.bukkit.ChatColor;
import org.bukkit.entity.Player;

public interface ChatUtils {

	String SPLITTER = translateColorCodes("&l&m----------------------------------------------------------------");
	char DEFAULT_COLOR_CHAR = '&';
	
	/**
	 * 发送分割线
	 */
	static void sendSplitter(Player player){
		player.sendMessage(SPLITTER);
	}
	
	/**
	 * 发送空行
	 */
	static void sendEmpty(Player player){
		player.sendMessage("");
	}
	
	/**
	 * 发送清屏消息
	 */
	static void sendCleanScreen(Player player) {
		for (int i = 0; i < 20; i++)
			sendEmpty(player);
	}
	
	/**
	 * 将文本中'&'转换为颜色字符
	 */
	static String translateColorCodes(String textToTranslate){
		return ChatColor.translateAlternateColorCodes(DEFAULT_COLOR_CHAR, textToTranslate);
	}
}

@@ -106,17 +106,19 @@
 lic 
+f
 in
-terface
+al class
  Cha
@@ -130,16 +130,36 @@
 s %7B%0D%0A%0D%0A%09
+public static final 
 String S
@@ -263,16 +263,36 @@
 --%22);%0D%0A%09
+public static final 
 char DEF
@@ -334,32 +334,39 @@
 * %E5%8F%91%E9%80%81%E5%88%86%E5%89%B2%E7%BA%BF%0D%0A%09 */%0D%0A%09
+public 
 static void send
@@ -446,32 +446,39 @@
  * %E5%8F%91%E9%80%81%E7%A9%BA%E8%A1%8C%0D%0A%09 */%0D%0A%09
+public 
 static void send
@@ -555,24 +555,31 @@
 %E5%B1%8F%E6%B6%88%E6%81%AF%0D%0A%09 */%0D%0A%09
+public 
 static void 
@@ -707,16 +707,23 @@
 %0A%09 */%0D%0A%09
+public 
 static S
@@ -865,11 +865,456 @@
 );%0D%0A%09%7D%0D%0A
+%09%0D%0A%09/**%0D%0A%09 * %E7%8E%A9%E5%AE%B6%E5%81%9C%E6%AD%A2%E6%8E%A5%E6%94%B6%E6%B6%88%E6%81%AF%3Cbr%3E%0D%0A%09 * %E8%AF%A5%E6%96%B9%E6%B3%95%E5%B0%86%E4%BC%9A%E5%B0%86%E5%8F%91%E9%80%81%E7%BB%99%E7%8E%A9%E5%AE%B6%E7%9A%84%E6%B6%88%E6%81%AF%E6%8B%A6%E6%88%AA%E5%B9%B6%E7%BC%93%E5%AD%98%EF%BC%8C%E7%9B%B4%E5%88%B0%E8%B0%83%E7%94%A8%7B@link ChatUtils#startReceiveChat(Player)%7D%E6%96%B9%E6%B3%95%E3%80%82%0D%0A%09 * @see ChatUtils#startReceiveChat(Player)%0D%0A%09 */%0D%0A%09public static void stopReceiveChat(Player player) %7B%0D%0A%09%09// TODO:%0D%0A%09%7D%0D%0A%09%0D%0A%09/**%0D%0A%09 * %E7%8E%A9%E5%AE%B6%E5%BC%80%E5%A7%8B%E6%8E%A5%E6%94%B6%E6%B6%88%E6%81%AF%3Cbr%3E%0D%0A%09 * %E8%AF%A5%E6%96%B9%E6%B3%95%E5%B0%86%E4%BC%9A%E5%B0%86%E5%B7%B2%E6%8B%A6%E6%88%AA%E7%9A%84%E7%8E%A9%E5%AE%B6%E6%B6%88%E6%81%AF%E5%8F%91%E9%80%81%EF%BC%8C%E5%B9%B6%E4%B8%94%E8%AF%A5%E5%8F%91%E9%80%81%E6%98%AF%E9%80%90%E6%AD%A5%E7%9A%84%EF%BC%8C%E4%BD%BF%E7%8E%A9%E5%AE%B6%E5%8F%AF%E4%BB%A5%E9%98%85%E8%AF%BB%E6%9C%AA%E8%AF%BB%E7%9A%84%E6%B6%88%E6%81%AF%E3%80%82%0D%0A%09 * @see ChatUtils#stopReceiveChat(Player)%0D%0A%09 */%0D%0A%09public static void startReceiveChat(Player player) %7B%0D%0A%09%09// TODO:%0D%0A%09%7D%0D%0A%09%0D%0A%09private ChatUtils() %7B%7D%0D%0A
 %7D%0D%0A

Update ChatUtils //TODO