Don't include child skills in these loops. Fixes #577

This commit is contained in:
GJ
2013-01-24 09:08:30 -05:00
parent bba23de31c
commit b7bb3f4487
6 changed files with 26 additions and 7 deletions

View File

@ -58,6 +58,9 @@ public class McrankCommand implements CommandExecutor {
sender.sendMessage(LocaleLoader.getString("Commands.mcrank.Player", new Object[] {playerName}));
for (SkillType skillType : SkillType.values()) {
int[] rankInts = Leaderboard.getPlayerRank(playerName, skillType);
if (skillType.isChildSkill()) {
continue;
}
if (skillType.equals(SkillType.ALL)) {
continue; // We want the overall ranking to be at the bottom