This bug was fixed in 25w34a along with the Statistics menu redesign:
I believe this now only changes the game mode and commands for other players; there are now separate options for the world host in the “World Options” menu, accessed from the general options screen.
This bug was fixed in 25w34a along with the Statistics menu redesign: