@Override
	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
		final Player s = (Player)sender;
		if (plugin.getLookup().isEnabled()) {	
			String target = null;
			if (args.length == 0 && sender instanceof Player) {
				target = sender.getName();
			}
			else {
				target = args[0];
			}
			final String p = target;
			
			plugin.getServer().getScheduler().runTaskAsynchronously(plugin, new Runnable(){
	
				@Override
				public void run() {
					OreLookup ores = plugin.getLookup().lookup(p, plugin.getConfiguration().getLookuptime(), plugin.getSearchblocks());
					plugin.sendData(s, ores);
					
				}
				
			});
		}
		else {
			s.sendMessage(ChatColor.RED+"Error! No Logging Plugin was loaded");
		}
		return true;
	}