From 8d0601babce94cfb98c778a89e529a1786f701f6 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 13 Jun 2013 10:56:46 -0400 Subject: [PATCH] Fix bug where all ranks less than 10 show as 0 with /mctop. --- .../nossr50/runnables/commands/MctopCommandDisplayTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandDisplayTask.java b/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandDisplayTask.java index 07a568d6c..3bfb9afb7 100644 --- a/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandDisplayTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandDisplayTask.java @@ -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);