mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 10:39:05 +00:00
Pipe character has been escaped
This commit is contained in:
parent
5a5c139ea6
commit
13b86462f7
@ -34,8 +34,8 @@ public class Format {
|
|||||||
String prefix = "";
|
String prefix = "";
|
||||||
String suffix = "";
|
String suffix = "";
|
||||||
try {
|
try {
|
||||||
prefix = FormatStringAll(MineverseChat.chat.getPlayerPrefix(sender.getPlayer()));
|
prefix = FormatStringAll(MineverseChat.chat.getPlayerPrefix(sender.getPlayer()).replace("|", ""));
|
||||||
suffix = FormatStringAll(MineverseChat.chat.getPlayerSuffix(sender.getPlayer()));
|
suffix = FormatStringAll(MineverseChat.chat.getPlayerSuffix(sender.getPlayer()).replace("|", ""));
|
||||||
if(suffix.equals("")) {
|
if(suffix.equals("")) {
|
||||||
suffix = "venturechat_no_suffix_code";
|
suffix = "venturechat_no_suffix_code";
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ public class Format {
|
|||||||
}
|
}
|
||||||
String nickname = "";
|
String nickname = "";
|
||||||
if(sender.getPlayer() != null) {
|
if(sender.getPlayer() != null) {
|
||||||
nickname = FormatStringAll(sender.getPlayer().getDisplayName());
|
nickname = FormatStringAll(sender.getPlayer().getDisplayName().replace("|", ""));
|
||||||
}
|
}
|
||||||
json += convertPlaceholders(f, JSONformat, prefix, nickname, suffix, sender);
|
json += convertPlaceholders(f, JSONformat, prefix, nickname, suffix, sender);
|
||||||
json += "]}";
|
json += "]}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user