public static void loadProperties()
	{
		try {
			Properties properties = new Properties();
			
			if(!dataDir.exists())
			{
				dataDir.mkdirs();
			}
			
			File file = new File(dataDir.getAbsolutePath() + "/CachedProps.txt");
			
			if(!file.exists())
			{
				return;
			}
			
			properties.load(new FileInputStream(file));
			
			if(properties.containsKey("port"))
			{
				ServerCore.instance().setPort(Integer.parseInt(properties.getProperty("port")));
			}
			
			if(properties.containsKey("displayName"))
			{
				ServerCore.instance().setDisplayName(properties.getProperty("displayName"));
			}
			
			if(properties.containsKey("discussion"))
			{
				String discName = properties.getProperty("discussion");
				File discFile = new File(discussionsDir.getAbsolutePath() + "/" + discName + ".disc");
				
				if(!discFile.exists())
				{
					return;
				}
				
				openDiscussion(discFile);
			}
		} catch(Exception e) {
			System.out.println("An error ocurred while reading properties.");
		}
	}