attempted fix, ChatProcessing line 125-136
I believe the previous code was creating unbalanced parenthesis
This commit is contained in:
parent
da3eacc2e1
commit
63f7106000
1 changed files with 12 additions and 5 deletions
|
@ -122,12 +122,19 @@ public class ChatProcessing {
|
||||||
namesb.append(")");
|
namesb.append(")");
|
||||||
StringBuilder nicksb = new StringBuilder();
|
StringBuilder nicksb = new StringBuilder();
|
||||||
nicksb.append("(?i)(");
|
nicksb.append("(?i)(");
|
||||||
for (Player p : PluginMain.GetPlayers()) {
|
final int size = PluginMain.GetPlayers().size();
|
||||||
|
for (int i = 0; i < size; i++)
|
||||||
|
{
|
||||||
final String nick = PlayerListener.nicknames.inverse().get(p.getUniqueId());
|
final String nick = PlayerListener.nicknames.inverse().get(p.getUniqueId());
|
||||||
if (nick != null) // Not everyone has a nickname
|
if (nick != null)
|
||||||
nicksb.append(nick).append("|");
|
{
|
||||||
|
nicksb.append(nick);
|
||||||
|
if (i < size - 1)
|
||||||
|
{
|
||||||
|
nicksb.append("|")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
nicksb.deleteCharAt(nicksb.length() - 1);
|
|
||||||
nicksb.append(")");
|
nicksb.append(")");
|
||||||
|
|
||||||
formatters
|
formatters
|
||||||
|
|
Loading…
Reference in a new issue