Minecraft – How to ensure that ‘gamerule keepInventory true’ is persistent across server restarts

minecraft-bukkitminecraft-java-editionminecraft-java-edition-server

I'm running a bukkit Minecraft server.

I want to ensure that gamerule keepInventory true is persistent across server restarts.

Is this standard behaviour once I've set it on a world using the command, or do I need to provide some kind of configuration for this so that it is applied after restarts?

Further – is there some way I can configuring the server so that gamerule overrides are applied when new worlds are created?

Best Answer

Once you set a game rule it will persist through reboots, I have doFireTick set to false on my server and it persists over reboots, as far as I know there is no way to configure it so that any new world created will already have commands set.