Fixed quotes in chat messages

This commit is contained in:
Norbi Peti 2016-01-05 21:01:03 +01:00
parent 199f28ac06
commit 8c8ad04725
3 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -272,7 +272,7 @@ public class PlayerListener implements Listener { // 2015.07.16.
json.append(String
.format("{\"text\":\"[%s]%s\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"Copy message\",\"color\":\"blue\"}},clickEvent:{\"action\":\"suggest_command\",\"value\":\"%s\"}},",
player.CurrentChannel.DisplayName,
(!player.RPMode ? "[OOC]" : ""), event.getMessage()));
(!player.RPMode ? "[OOC]" : ""), event.getMessage().replace("\"", "''")));
json.append("{\"text\":\" <\"},");
json.append(String.format("{\"text\":\"%s%s\",", event.getPlayer()
.getDisplayName(), player.GetFormattedFlair()));