mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Output Header along with info for mcRank
This commit is contained in:
parent
41ae8cbbf3
commit
fb1d48fcae
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user