docker-minecraft-bedrock-server icon indicating copy to clipboard operation
docker-minecraft-bedrock-server copied to clipboard

Server.properties command

Open BigRedProductions opened this issue 1 year ago • 5 comments

I can't for the life of me remember the command to access server.properties. Can anyone help me out and tell me the command for it?

BigRedProductions avatar Mar 26 '24 23:03 BigRedProductions

Why do you need to access it? There are env var mappings for most (or all) of the properties

https://github.com/itzg/docker-minecraft-bedrock-server/tree/master#server-properties

itzg avatar Mar 27 '24 00:03 itzg

I want to change my game mode to creative.

BigRedProductions avatar Mar 27 '24 01:03 BigRedProductions

It actually looks like I'm missing a mapping for force-gamemode. I'll add that and then you won't need to access server.properties.

To answer your original question: it depends. If you have the /data container mounted from a host directory, then just access the file like normal from the host. If you don't, you can docker exec into the container and edit the file, but you'll need apt install a text editor temporarily into the container.

itzg avatar Mar 27 '24 02:03 itzg