This commit is contained in:
t00thpick1 2013-03-11 17:08:12 -03:00
parent 29b300ca49
commit 4cbcbd2462

View File

@ -126,12 +126,14 @@ public class McrankCommand implements CommandExecutor {
// TODO: Localize messages // TODO: Localize messages
if (mcMMO.queueManager.contains(sender.getName())) { if (mcMMO.queueManager.contains(sender.getName())) {
sender.sendMessage(ChatColor.RED + "Please wait for your previous command to process"); sender.sendMessage(ChatColor.RED + "Please wait for your previous command to process");
return;
} }
if (!mcMMO.queueManager.queue(new McRankAsync(playerName, sender))) { if (!mcMMO.queueManager.queue(new McRankAsync(playerName, sender))) {
sender.sendMessage(ChatColor.RED + "Queue is full"); sender.sendMessage(ChatColor.RED + "Unable to add to queue");
return;
} }
sender.sendMessage(ChatColor.YELLOW + "Calculating rankings..."); sender.sendMessage(ChatColor.YELLOW + "Calculating mcMMO rankings...");
} }
} }