    public void translate(AdventureSettingsPacket packet, GeyserSession session) {
        boolean isFlying = packet.getSettings().contains(AdventureSetting.FLYING);
        if (!isFlying && session.getGameMode() == GameMode.SPECTATOR) {
            // We should always be flying in spectator mode
            session.sendAdventureSettings();
            return;
        }

        session.setFlying(isFlying);
        ClientPlayerAbilitiesPacket abilitiesPacket = new ClientPlayerAbilitiesPacket(isFlying);
        session.sendDownstreamPacket(abilitiesPacket);

        if (isFlying && session.getPlayerEntity().getMetadata().getFlags().getFlag(EntityFlag.SWIMMING)) {
            // Bedrock can fly and swim at the same time? Make sure that can't happen
            session.setSwimming(false);
        }
    }
When an actor claims to have a given identity, the software does not prove or insufficiently proves that the claim is correct.