mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Java loop should work right now, forgot to order it earlier
This commit is contained in:
parent
c54755b9c1
commit
4fb7d60eee
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user