public static void save(String fileName) throws FileNotFoundException {

		// prepare to write to file
		FileOutputStream fout = new FileOutputStream("plugins/" + Main.pluginName + "/" + fileName);
		ObjectOutputStream oos;

		try {

			// attempt to write to file
			oos = new ObjectOutputStream(fout);

			try {

				// attempt to save regions object to file
				oos.writeObject(StaticVariables.getRegions());
				Main.sendDebugInfo("Region data saved successfully!");

				try {

					// attempt to close file output stream
					fout.close();

				} catch (IOException e) {

					// if IOexception send error msg to console
					Main.sendSevereInfo("A problem occurred attempting to read from the region data file : IOException");
					e.printStackTrace();
				}
			} catch (IOException e) {

				// if IOexception send error msg to console
				Main.sendSevereInfo("A problem occurred attempting to read from the region data file : IOException");
				e.printStackTrace();
			}

		} catch (IOException e1) {

			// if IOexception send error msg to console
			Main.sendSevereInfo("A problem occurred attempting to read from the region data file : IOException");
			e1.printStackTrace();
		}

	}