This commit is contained in:
sauilitired 2015-07-26 14:03:34 +02:00
parent 9f608861c9
commit f66b42662f

View File

@ -55,7 +55,7 @@ public class ChatListener implements Listener {
recipients.add(p);
}
}
format = format.replaceAll("%plot_id%", id.x + ";" + id.y).replaceAll("%sender%", sender).replaceAll("%msg%", message);
format = format.replaceAll("%plot_id%", id.x + ";" + id.y).replaceAll("%sender%", sender).replaceAll("%msg%", message.replaceAll("([%]{1})", "%%"));
format = ChatColor.translateAlternateColorCodes('&', format);
event.setFormat(format);
}