Java loop should work right now, forgot to order it earlier

This commit is contained in:
T00thpick1 2013-01-12 21:58:02 -05:00
parent c54755b9c1
commit 4fb7d60eee

View File

@ -144,9 +144,12 @@ public class MctopCommand implements CommandExecutor {
else {
sender.sendMessage(LocaleLoader.getString("Commands.Skill.Leaderboard", new Object[] { Misc.getCapitalized(query) }));
}
int place = ((page * 10) - 9);
for (ArrayList<String> entry : userslist.values()) {
sender.sendMessage(String.valueOf(place) + ". " + ChatColor.GREEN + entry.get(1) + " - " + ChatColor.WHITE + entry.get(0));
int place = (page * 10) - 9;
for (int i =0; i < 10; i++) {
if(userslist.get(i) == null) {
break;
}
sender.sendMessage(String.valueOf(place) + ". " + ChatColor.GREEN + userslist.get(i).get(1) + " - " + ChatColor.WHITE + userslist.get(i).get(0));
place++;
}
}