mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Removed /mcstats usage from console (use inspect instead)
This commit is contained in:
		@@ -31,18 +31,8 @@ public class McstatsCommand implements CommandExecutor {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!(sender instanceof Player)) {
 | 
			
		||||
			if(args.length != 1) {
 | 
			
		||||
				sender.sendMessage("Usage: mcstats <username>");
 | 
			
		||||
            sender.sendMessage("This command does not support console useage.");
 | 
			
		||||
            return true;
 | 
			
		||||
			} else {
 | 
			
		||||
				Player temp = plugin.getServer().getPlayer(args[0]);
 | 
			
		||||
				if(temp == null) {
 | 
			
		||||
					sender.sendMessage("Could not find player: " + args[0]);
 | 
			
		||||
					return true;
 | 
			
		||||
				} else {
 | 
			
		||||
					player = temp;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		PlayerProfile PP = Users.getProfile(player);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user