NuclearW loves his spacing, also pinging him.

This commit is contained in:
T00thpick1 2013-03-10 01:50:32 -05:00 committed by NuclearW
parent 7294175d9c
commit b700a99c52
2 changed files with 8 additions and 1 deletions

View File

@ -127,9 +127,12 @@ public class McrankCommand implements CommandExecutor {
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");
} }
if (!mcMMO.queueManager.queue(new McRankAsync(playerName, sender))) { if (!mcMMO.queueManager.queue(new McRankAsync(playerName, sender))) {
// This will only run if for some reason it is unable to add to the queue // This will only run if for some reason it is unable to add to the queue
sender.sendMessage(ChatColor.RED + "Unable to add to queue."); sender.sendMessage(ChatColor.RED + "Unable to add to queue.");
} }
sender.sendMessage(ChatColor.YELLOW + "Calculating mcMMO rankings...");
} }
} }

View File

@ -126,10 +126,14 @@ public class MctopCommand 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 McTopAsync(page, query, sender))) { if (!mcMMO.queueManager.queue(new McTopAsync(page, query, sender))) {
// This will only run if for some reason it is unable to add to the queue // This will only run if for some reason it is unable to add to the queue
sender.sendMessage(ChatColor.RED + "Unable to add to queue."); sender.sendMessage(ChatColor.RED + "Unable to add to queue.");
} }
sender.sendMessage(ChatColor.YELLOW + "Calculating mcMMO rankings...");
} }
} }