From fb1d48fcae4ee170571d3c999ba012a9572aa54a Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Wed, 16 Jan 2013 16:13:31 -0500 Subject: [PATCH] Output Header along with info for mcRank --- .../java/com/gmail/nossr50/commands/mc/McrankCommand.java | 5 ++--- src/main/java/com/gmail/nossr50/runnables/mcRankAsync.java | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/mc/McrankCommand.java b/src/main/java/com/gmail/nossr50/commands/mc/McrankCommand.java index 0d705bcb3..d7ed0a8cb 100644 --- a/src/main/java/com/gmail/nossr50/commands/mc/McrankCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/mc/McrankCommand.java @@ -34,9 +34,6 @@ public class McrankCommand implements CommandExecutor { default: return false; } - sender.sendMessage(ChatColor.GOLD + "-=PERSONAL RANKINGS=-"); - sender.sendMessage(ChatColor.RED+"TARGET: "+ChatColor.WHITE+playerName); - if(Config.getInstance().getUseMySQL()) { sqlDisplay(sender, playerName); } else { @@ -51,6 +48,8 @@ public class McrankCommand implements CommandExecutor { } public void flatfileDisplay(CommandSender sender, String playerName) { + sender.sendMessage(ChatColor.GOLD + "-=PERSONAL RANKINGS=-"); + sender.sendMessage(ChatColor.RED+"TARGET: "+ChatColor.WHITE+playerName); for (SkillType skillType : SkillType.values()) { int[] rankInts = Leaderboard.getPlayerRank(playerName, skillType); diff --git a/src/main/java/com/gmail/nossr50/runnables/mcRankAsync.java b/src/main/java/com/gmail/nossr50/runnables/mcRankAsync.java index f2611867a..49d8358f7 100644 --- a/src/main/java/com/gmail/nossr50/runnables/mcRankAsync.java +++ b/src/main/java/com/gmail/nossr50/runnables/mcRankAsync.java @@ -28,6 +28,8 @@ public class mcRankAsync implements Runnable { @Override public void run() { + sender.sendMessage(ChatColor.GOLD + "-=PERSONAL RANKINGS=-"); + sender.sendMessage(ChatColor.RED+"TARGET: "+ChatColor.WHITE+playerName); for (SkillType skillType : SkillType.values()) { if (skillType.equals(SkillType.ALL)) continue; // We want the overall ranking to be at the bottom