mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	NuclearW loves his spacing, also pinging him.
This commit is contained in:
		@@ -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...");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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...");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user