I don't know if this is intentional or not, but players in spectator mode do not have their ability to fly revoked whenever /ability is used. If this were to be intentional, there still is a message which states that the ability to fly is revoked whilst the player can still fly. There either needs to be a error stating you cannot turn of flight for spectators or the command should stop then from flying.
Comments 2
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
It is not clear how you expect this to actually affect players while they are in Spectator mode?
Spectator mode players are not affected by "gravity" and can always fly / hover while in that mode as that is an intrinsic part of the Spectator mode behavior.
When they exit Spectator mode, their ability to fly should match the most recent "mayfly" setting changes.
Please edit the Description to include a list of steps along with the Observed and Expected results, as shown here:
(add screenshots or video to help explain the issue)
This report has been temporarily closed as Awaiting Response. It will automatically reopen when you add information. Please follow the format shown and include all sections (steps, observed, expected). Reports that do not contain all of the requested information and complete steps to reproduce the issue may be closed as Incomplete. For more information please read the Bug Tracker Guidelines.
You may find this Report Creation Form helpful for any future reports you create.