mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-04-03 10:16:23 +02:00
parent
8cf16d4a1c
commit
c47bf84493
@ -188,11 +188,16 @@ public final class LeaderboardManager {
|
|||||||
statsList = playerStatHash.get(SkillType.getSkill(skillType));
|
statsList = playerStatHash.get(SkillType.getSkill(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pageNumber < 1) {
|
||||||
|
pageNumber = 1;
|
||||||
|
}
|
||||||
int destination = (pageNumber - 1) * 10;
|
int destination = (pageNumber - 1) * 10;
|
||||||
|
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
PlayerStat ps = statsList.get(destination + i);
|
if (destination + i < statsList.size()) {
|
||||||
info[i] = ps.name + ":" + ps.statVal;
|
PlayerStat ps = statsList.get(destination + i);
|
||||||
|
info[i] = ps.name + ":" + ps.statVal;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user