public static void saveAttunment(String player, String bWorld, double x, double y, double z, float yaw, float pitch) throws SQLException {
		String table = Config.sqlPrefix + "Attunements_v2";

		Connection con = getConnection();
		PreparedStatement statement = null;
		int success = 0;

		String query = "UPDATE `" + table + "` SET `x` = ?, `y` = ?, `z` = ?, `yaw` = ?, `pitch` = ? WHERE `player` = ? AND `world` = ?";

		statement = con.prepareStatement(query);
		statement.setDouble(1, x);
		statement.setDouble(2, y);
		statement.setDouble(3, z);
		statement.setFloat(4, yaw);
		statement.setFloat(5, pitch);
		statement.setString(6, player);
		statement.setString(7, bWorld);

		success = statement.executeUpdate();

		statement.close();

		if (success > 0) {
			return;
		}

		if (success == 0) {
			query = "insert into `" + table + "` (player, world, x,y,z,yaw, pitch) values (?, ?, ?, ?,?,?,?)";
			statement = con.prepareStatement(query);
			statement.setString(1, player);
			statement.setString(2, bWorld);

			statement.setDouble(3, x);
			statement.setDouble(4, y);
			statement.setDouble(5, z);
			statement.setFloat(6, yaw);
			statement.setFloat(7, pitch);

			success = statement.executeUpdate();
			statement.close();
			con.close();
		}

		con.close();
	}