fixing my fix again, more typos - ChatProcessing
This commit is contained in:
parent
e2b33f5342
commit
596a4e422e
1 changed files with 14 additions and 9 deletions
|
@ -122,20 +122,25 @@ public class ChatProcessing {
|
||||||
namesb.append(")");
|
namesb.append(")");
|
||||||
StringBuilder nicksb = new StringBuilder();
|
StringBuilder nicksb = new StringBuilder();
|
||||||
nicksb.append("(?i)(");
|
nicksb.append("(?i)(");
|
||||||
final int size = PluginMain.GetPlayers().size();
|
|
||||||
for (int i = 0; i < size; i++)
|
|
||||||
{
|
{
|
||||||
final String nick = PlayerListener.nicknames.inverse().get(p.getUniqueId());
|
final int size = PluginMain.GetPlayers().size();
|
||||||
|
int index = 0;
|
||||||
|
for (Player p : PluginMain.GetPlayers())
|
||||||
|
{
|
||||||
|
final String nick = PlayerListener.nicknames.inverse().get(p.getUniqueId());
|
||||||
if (nick != null)
|
if (nick != null)
|
||||||
{
|
{
|
||||||
nicksb.append(nick);
|
nicksb.append(nick);
|
||||||
if (i < size - 1)
|
if (index < size - 1)
|
||||||
{
|
{
|
||||||
nicksb.append("|");
|
nicksb.append("|");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
nicksb.append(")");
|
||||||
}
|
}
|
||||||
nicksb.append(")");
|
|
||||||
|
|
||||||
formatters
|
formatters
|
||||||
.add(new ChatFormatterBuilder().setRegex(Pattern.compile("null")).setColor(Color.DarkRed).build()); // Properly added a bug as a feature
|
.add(new ChatFormatterBuilder().setRegex(Pattern.compile("null")).setColor(Color.DarkRed).build()); // Properly added a bug as a feature
|
||||||
|
|
Loading…
Reference in a new issue