ArrayList display = new ArrayList();
for (Player p : game.getAllPlayers())
display.add(new StringBuilder().append(game.isPlayerActive(p) ? ChatColor.BLACK : ChatColor.GRAY).append(NameUtil.stylize(p.getName(), true, !game.isPlayerActive(p))).toString()); int no;
int line;
try {
no = 2;
line = 0;
for (String s : display) {
((Sign)this.signs.get(no)).setLine(line, s);
line++;
if (line >= 4) {
line = 0;
no++;
}
}
} catch (Exception e) { }
for (Sign s : this.signs)
s.update();
Can someone Help me??. when i write "for (String s : display) {" it gives me a DISPLAY error