public static void saveProperties()
	{
		try {
			Properties properties = new Properties();
			
			if(!dataDir.exists())
			{
				dataDir.mkdirs();
			}
			
			File file = new File(dataDir.getAbsolutePath() + "/CachedProps.txt");
			
			if(!file.exists())
			{
				file.createNewFile();
			}
			
			FileOutputStream outputStream = new FileOutputStream(file);
			
			if(ServerCore.instance().port != -1)
			{
				properties.setProperty("port", Integer.toString(ServerCore.instance().port));
			}
			
			if(ServerCore.instance().displayName != null)
			{
				properties.setProperty("displayName", ServerCore.instance().displayName);
			}
			
			if(ServerCore.instance().discussion != null)
			{
				properties.setProperty("discussion", ServerCore.instance().discussion);
			}
			
			properties.store(outputStream, "Server Cached Properties");
			outputStream.close();
		} catch(Exception e) {
			System.out.println("An error ocurred while saving properties.");
		}
	}