Fixed quotes in chat messages
This commit is contained in:
parent
199f28ac06
commit
8c8ad04725
3 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -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()));
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue