This is the 2nd Ticket I've opened since the first support ticket didn't help the situation.
If you upload a world to realms and then download it from the realm it will get rid of the setmaxplayers command.
This is kinda detrimental to me because I run a 200+ person community which needs a high amount of players on constantly which is why I needed to change ir back to a world but I cant do that if realms removes the setmaxplayers command because right now it seems that the only solution would be to create a new facility which would take months of work because this place is heavily organized and uses alot of commands to function so please help.
This issue is being tracked at MCPE-163495. The bug tracker is for reporting bugs, not for receiving help. For help, you can try visiting /r/MinecraftHelp on Reddit or the Community Support Discord server.