mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-27 07:36:46 +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 {
|
else {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Skill.Leaderboard", new Object[] { Misc.getCapitalized(query) }));
|
sender.sendMessage(LocaleLoader.getString("Commands.Skill.Leaderboard", new Object[] { Misc.getCapitalized(query) }));
|
||||||
}
|
}
|
||||||
int place = ((page * 10) - 9);
|
int place = (page * 10) - 9;
|
||||||
for (ArrayList<String> entry : userslist.values()) {
|
for (int i =0; i < 10; i++) {
|
||||||
sender.sendMessage(String.valueOf(place) + ". " + ChatColor.GREEN + entry.get(1) + " - " + ChatColor.WHITE + entry.get(0));
|
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++;
|
place++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user