mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fix bug where all ranks less than 10 show as 0 with /mctop.
This commit is contained in:
parent
050be563bf
commit
8d0601babc
@ -35,7 +35,7 @@ public class MctopCommandDisplayTask extends BukkitRunnable {
|
||||
int place = (page * 10) - 9;
|
||||
|
||||
for (PlayerStat stat : userStats) {
|
||||
String digit = (place < 10) ? "0" : "" + String.valueOf(place);
|
||||
String digit = ((place < 10) ? "0" : "") + String.valueOf(place);
|
||||
|
||||
// Format: 1. Playername - skill value
|
||||
sender.sendMessage(digit + ". " + ChatColor.GREEN + stat.name + " - " + ChatColor.WHITE + stat.statVal);
|
||||
|
Loading…
Reference in New Issue
Block a user