Răsfoiți Sursa

NuclearW loves his spacing, also pinging him.

T00thpick1 12 ani în urmă
părinte
comite
b700a99c52

+ 3 - 0
src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java

@@ -127,9 +127,12 @@ public class McrankCommand implements CommandExecutor {
         if (mcMMO.queueManager.contains(sender.getName())) {
             sender.sendMessage(ChatColor.RED + "Please wait for your previous command to process");
         }
+
         if (!mcMMO.queueManager.queue(new McRankAsync(playerName, sender))) {
             // 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.YELLOW + "Calculating mcMMO rankings...");
     }
 }

+ 5 - 1
src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java

@@ -126,10 +126,14 @@ public class MctopCommand implements CommandExecutor {
         //TODO: Localize messages
         if (mcMMO.queueManager.contains(sender.getName())) {
             sender.sendMessage(ChatColor.RED + "Please wait for your previous command to process");
-        } 
+            return;
+        }
+
         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
             sender.sendMessage(ChatColor.RED + "Unable to add to queue.");
         }
+
+        sender.sendMessage(ChatColor.YELLOW + "Calculating mcMMO rankings...");
     }
 }