Fixed chat for 1.9 ("How did this even work before")

This commit is contained in:
Norbi Peti 2016-03-14 20:35:48 +01:00
parent 80c0756ef7
commit 9d33b7e21f
3 changed files with 3 additions and 1 deletions

Binary file not shown.

View file

@ -213,7 +213,7 @@ public class ChatProcessing {
StringBuilder json = new StringBuilder();
json.append("[\"\",");
json.append(String
.format("{\"text\":\"[%s]%s\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"Copy message\",\"color\":\"blue\"}},clickEvent:{\"action\":\"suggest_command\",\"value\":\"%s\"}},",
.format("{\"text\":\"[%s]%s\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"Copy message\",\"color\":\"blue\"}},\"clickEvent\":{\"action\":\"suggest_command\",\"value\":\"%s\"}},",
currentchannel.DisplayName, (mplayer != null
&& !mplayer.RPMode ? "[OOC]" : ""), suggestmsg));
json.append("{\"text\":\" <\"},");
@ -462,6 +462,8 @@ public class ChatProcessing {
: sender.getName()),
(mplayer != null ? mplayer.GetFormattedFlair()
: ""), message));
System.out.println(json.toString()); //TODO: TMP
System.out.println("Col 107: "+json.toString().charAt(107)); //TODO: TMP
return true;
}
}