public static void main(String[] args) throws IOException
	{
		logger = Logger.getLogger("MCListener");
		logger.setUseParentHandlers(false);
		Handler handler = new ConsoleHandler();
		handler.setFormatter(new LogFormatter());
		logger.addHandler(handler);
		
		try
		{
			loadConfig();
		}
		catch(IOException e)
		{
			System.err.println(e.getMessage());
			return;
		}
		
		ServerListener listener = new ServerListener(port);
		
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		while(true)
		{
			String line = reader.readLine();
			if(line.equalsIgnoreCase("exit") || line.equalsIgnoreCase("quit") || line.equalsIgnoreCase("q") || line.equalsIgnoreCase("stop"))
				break;
		}
		
		MCListener.logger.info("Shutting down...");
		listener.close();
	}