Remember to return.

This commit is contained in:
t00thpick1 2013-03-11 17:07:30 -03:00
parent 6700ead160
commit 29b300ca49

View File

@ -126,12 +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))) {
sender.sendMessage(ChatColor.RED + "Queue is full"); sender.sendMessage(ChatColor.RED + "Unable to add to queue");
return;
} }
sender.sendMessage(ChatColor.YELLOW + "Calculating leaderboards..."); sender.sendMessage(ChatColor.YELLOW + "Calculating mcMMO leaderboards...");
} }
} }