Output Header along with info for mcRank

This commit is contained in:
T00thpick1 2013-01-16 16:13:31 -05:00
parent 41ae8cbbf3
commit fb1d48fcae
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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