浏览代码

Now player brackets are colored based on their name color. Actually I need this to be group prefix, but am too lazy to change it in this commit.

nossr50 14 年之前
父节点
当前提交
2195aca759
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      vMinecraftChat.java

+ 4 - 4
vMinecraftChat.java

@@ -459,8 +459,8 @@ public class vMinecraftChat {
 	public static boolean quote(Player player, String message)
 	public static boolean quote(Player player, String message)
 	{
 	{
 		//Format the name
 		//Format the name
-		String playerName = Colors.White + "<" + getName(player)
-				+ Colors.White + "> ";
+		String playerName = player.getColor() + "<" + getName(player)
+				+ player.getColor() + "> ";
 		if(vMinecraftSettings.getInstance().greentext()) {
 		if(vMinecraftSettings.getInstance().greentext()) {
 			//Log the chat
 			//Log the chat
 			log.log(Level.INFO, "<"+player.getName()+"> " + message);
 			log.log(Level.INFO, "<"+player.getName()+"> " + message);
@@ -504,8 +504,8 @@ public class vMinecraftChat {
 	public static boolean quakeColors(Player player, String message)
 	public static boolean quakeColors(Player player, String message)
 	{
 	{
 		//Format the name
 		//Format the name
-		String playerName = Colors.White + "<"
-				+ getName(player) + Colors.White +"> ";
+		String playerName = player.getColor() + "<"
+				+ getName(player) + player.getColor() +"> ";
 		if(vMinecraftSettings.getInstance().quakeColors()) {
 		if(vMinecraftSettings.getInstance().quakeColors()) {
 
 
 			String color = vMinecraftUsers.getProfile(player).getColor();
 			String color = vMinecraftUsers.getProfile(player).getColor();