package team.unstudio.udpl.util;

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

public interface ChatUtils {

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

@@ -494,24 +494,157 @@
 %7D%0D%0A%09%0D%0A%09/**%0D%0A
+%09 * %E5%8F%91%E9%80%81%E6%B8%85%E5%B1%8F%E6%B6%88%E6%81%AF%0D%0A%09 */%0D%0A%09static void sendCleanScreen(Player player) %7B%0D%0A%09%09for (int i = 0; i %3C 20; i++)%0D%0A%09%09%09sendEmpty(player);%0D%0A%09%7D%0D%0A%09%0D%0A%09/**%0D%0A
 %09 * %E5%B0%86%E6%96%87%E6%9C%AC%E4%B8%AD'&'%E8%BD%AC

Update ChatUtils