public static void main(String[] args)
{
	Conf.init();

	boolean nicequit = false;
	while(!nicequit) {
		try {
			Wrapper serv = new Wrapper();
			serv.start();

			while(!serv.hasStopped()) {
				try {
					serv.join();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}

			nicequit = serv.wasNiceQuit();
			if(!nicequit) {
				System.err.println("[WARNING] The server crashed or was stopped from whithin the game. Restarting…");
			}
		} catch(Exception e) {
			e.printStackTrace();
			System.exit(1);
		}
	}

	System.exit(0);
}