Fixed chat for 1.9 ("How did this even work before")
This commit is contained in:
parent
80c0756ef7
commit
9d33b7e21f
3 changed files with 3 additions and 1 deletions
Binary file not shown.
|
@ -213,7 +213,7 @@ public class ChatProcessing {
|
||||||
StringBuilder json = new StringBuilder();
|
StringBuilder json = new StringBuilder();
|
||||||
json.append("[\"\",");
|
json.append("[\"\",");
|
||||||
json.append(String
|
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
|
currentchannel.DisplayName, (mplayer != null
|
||||||
&& !mplayer.RPMode ? "[OOC]" : ""), suggestmsg));
|
&& !mplayer.RPMode ? "[OOC]" : ""), suggestmsg));
|
||||||
json.append("{\"text\":\" <\"},");
|
json.append("{\"text\":\" <\"},");
|
||||||
|
@ -462,6 +462,8 @@ public class ChatProcessing {
|
||||||
: sender.getName()),
|
: sender.getName()),
|
||||||
(mplayer != null ? mplayer.GetFormattedFlair()
|
(mplayer != null ? mplayer.GetFormattedFlair()
|
||||||
: ""), message));
|
: ""), message));
|
||||||
|
System.out.println(json.toString()); //TODO: TMP
|
||||||
|
System.out.println("Col 107: "+json.toString().charAt(107)); //TODO: TMP
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue