public void save() throws IOException {
		BufferedReader reader;
		try {
			reader = new BufferedReader(new FileReader(System.getProperty("resources") + "/database/factions"));

			String line;
			StringBuilder fileContent = new StringBuilder();
			String newLine = null;
			while((line = reader.readLine()) != null) {
				String[] temp = line.split(";");

				if(temp[0].matches(textField.getText())) {
					newLine = textField.getText();
					fileContent.append(newLine);
					fileContent.append(System.getProperty("line.separator"));
				} else {
					fileContent.append(line);
					fileContent.append(System.getProperty("line.separator"));
				}
			}
			if(newLine == null) {
				newLine = textField.getText();
				fileContent.append(newLine);
				fileContent.append(System.getProperty("line.separator"));
			}

			BufferedWriter out = new BufferedWriter(new FileWriter(System.getProperty("resources") + "/database/factions"));
			out.write(fileContent.toString());
			out.close();
			reader.close();
		} catch (FileNotFoundException e) {
			System.out.println("The factions database has been misplaced!");
			e.printStackTrace();
		} catch (IOException e) {
			System.out.println("Factions database failed to load!");
			e.printStackTrace();
		}
	}