mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Remember to return.
This commit is contained in:
parent
6700ead160
commit
29b300ca49
@ -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...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user