attempted fix, ChatProcessing line 125-136

I believe the previous code was creating unbalanced parenthesis
This commit is contained in:
BuildTools 2016-12-17 15:03:53 -05:00
parent da3eacc2e1
commit 63f7106000

View file

@ -122,12 +122,19 @@ public class ChatProcessing {
namesb.append(")");
StringBuilder nicksb = new StringBuilder();
nicksb.append("(?i)(");
for (Player p : PluginMain.GetPlayers()) {
final String nick = PlayerListener.nicknames.inverse().get(p.getUniqueId());
if (nick != null) // Not everyone has a nickname
nicksb.append(nick).append("|");
final int size = PluginMain.GetPlayers().size();
for (int i = 0; i < size; i++)
{
final String nick = PlayerListener.nicknames.inverse().get(p.getUniqueId());
if (nick != null)
{
nicksb.append(nick);
if (i < size - 1)
{
nicksb.append("|")
}
}
}
nicksb.deleteCharAt(nicksb.length() - 1);
nicksb.append(")");
formatters