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