package net.new_liberty.pvpranker.command;

import net.new_liberty.pvpranker.PvPRanker;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;

/**
 * PvP Command
 */
public class PvPStatsCommand implements CommandExecutor {
    private final PvPRanker plugin;

    public PvPStatsCommand(PvPRanker plugin) {
        this.plugin = plugin;
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        sender.sendMessage("Your score is " + plugin.getPvPer(sender.getName()).getScore());
        return true;
    }
}

@@ -81,16 +81,111 @@
 Ranker;%0A
+import net.new_liberty.pvpranker.PvPer;%0Aimport org.bukkit.Bukkit;%0Aimport org.bukkit.ChatColor;%0A
 import o
@@ -211,16 +211,16 @@
 ommand;%0A
-
 import o
@@ -541,16 +541,22 @@
 Command(
+final 
 CommandS
@@ -629,93 +629,951 @@
     
-sender.sendMessage(%22Your score is %22 + plugin.getPvPer(sender.getName()).getScore()
+String nameStr = sender.getName();%0A        if (args.length %3E 0) %7B%0A            nameStr = args%5B0%5D;%0A        %7D%0A%0A        final String name = nameStr;%0A%0A        Bukkit.getScheduler().runTaskAsynchronously(plugin, new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                PvPer pvper = plugin.getPvPer(name);%0A%0A                sender.sendMessage(ChatColor.YELLOW + %22=== %22 + name + %22's PvP Stats ===%22);%0A%0A                if (pvper.getKillCount(plugin.getMilestone()) == 1) %7B%0A                    sender.sendMessage(ChatColor.GREEN + name + %22 has no PvP history since the last milestone.%22);%0A                    return;%0A                %7D%0A%0A                int score = pvper.getScore(plugin.getMilestone());%0A                sender.sendMessage(ChatColor.GREEN + %22Rank: %22 + plugin.getRank(score).getName());%0A                sender.sendMessage(ChatColor.GREEN + %22Score: %22 + score);%0A                return;%0A            %7D%0A        %7D
 );%0A
+%0A
     

Improve PvP Stats command