Steps to Reproduce
For the purposes of these steps we will be using the 'doinsomnia' game rule as an example. You can use any game rule that is NOT in the world settings UI for this test.
1. Enter a Realm with an existing world. Do not allow anyone else to connect to the Realm while testing.
2. As an owner, type in /gamerule doinsomnia
3. Take note of the value that is returned (value is true by default)
4. As an owner enter the following command: /gamerule doinsomnia false
5. Leave the world and don't allow anyone else to connect to it during the test.
6. Wait 20 minutes for the Realm to be unloaded automatically by the server. OR close and re-open the Realm in the Realm subscription page.
7. Re-join the world after the world has been automatically unloaded by the Realms server.
8. Type in /gamerule doinsomnia and take note of the output.
Observed Results
While the world is active an owner will change the doinsomnia rule to false to prevent phantoms from spawning. During the session the rule will be in force until the world is unloaded either by everyone leaving and the server automatically unloading the world, or closing and re-opening the Realm through the subscriptions page.
If the owner re-enters the world, said owner will find the doinsomnia rule has been reset to the default state of true. The owner will also discover any other rule set using /gamerule has been reset to default.
Expected Results
Realm owner expects to see /gamerule changes to persist through sessions / reloads as they did prior to 1.18.10. For example, setting doinsomnia to false should remain false until someone such as the owner or an op were to change said setting.
Note: This problem only affects game rules changed with the /gamerule command. All players MUST be disconnected from the realm long enough for the world to be unloaded automatically by the server.
I have also attached a video demonstrating this (I cut out the 20 minutes of doing nothing waiting for the server to unload). So you must wait 20 minutes before re-joining the Realm.
Linked issues
is duplicated by 34
relates to 1
Attachments
Comments 55
I can confirm the major bug! Game rule data is not saving at all after all players have left the realm. Command blocks and command block output has been getting reset constantly on my realm. This has crippled my realm. Moving to a back up does not work and replacing the world does not work. This is really bad. I moved the map to a new realm and its still is not working. Also the realm is crashing when the last player leaves which is making the realm unresponsive for 20-30. During that time players cant connect. Opening setting to check members and stuff will result in a infinite loading box.
–
Reply from @unknown
Please limit comments to information related to this specific issue, which is that gamerule changes do not get saved with the realm. Any other issues you may be having (command blocks, crashes, etc) should be reported separately. However, please also note that crashes are automatically logged by the realm server and are not accepted here on the bug tracker unless they contain a specific list of steps that someone else can follow to reproduce the crash. For more information please see the Bug Tracker Guidelines
Umija, I believe brett is talking about the command block output game rule which does indeed get reset along with all of the other settings accessible via /gamerule. Which is extra annoying when players are seeing command block output when they shouldn't be. Again, it is directly related to game rules reset.
Umija5895M,
The description has been updated and I have also attached a video. Please let me know if there is any other data I can provide. Thanks.
We released a service-side fix for this on January 8th, 2025. Note that you may need to reset any settings that were cleared prior to that though.
Also note that there is a UI bug still in our Realms Edit world screen where updating any setting can result in some gamerules being reset to the default. Our client team is working on a fix for this, but in the meantime any gamerule updates made via in game slash commands will in fact persist.
Jorgeson, we confirmed that the remaining issues with gamerules is due to the UI bug mentioned below. It appears that updating any settings via the Realms Edit World menu can result in gamerules reverting to their default. Our client team will be working on a fix for this, but in the meantime, any gamerule updates made via slash commands are in fact persisting across sessions.
Hi there @DLon King.
Hope that you are well thanks for the update on this.
Is there any timescale or timeline that you can give as to when the remaining issues for this realm ui bug will be fixed on realms
Greatly appreciate the hard work
Kind regards
Was this working on your realm prior to the 1.18.10 update?