Fixed quotes in chat messages

This commit is contained in:
Norbi Peti 2016-01-05 21:01:03 +01:00
parent 10a298dd74
commit 26287d8db6
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 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\"}},",
player.CurrentChannel.DisplayName, player.CurrentChannel.DisplayName,
(!player.RPMode ? "[OOC]" : ""), event.getMessage())); (!player.RPMode ? "[OOC]" : ""), event.getMessage().replace("\"", "''")));
json.append("{\"text\":\" <\"},"); json.append("{\"text\":\" <\"},");
json.append(String.format("{\"text\":\"%s%s\",", event.getPlayer() json.append(String.format("{\"text\":\"%s%s\",", event.getPlayer()
.getDisplayName(), player.GetFormattedFlair())); .getDisplayName(), player.GetFormattedFlair()));