GithubHelp home page GithubHelp logo

Comments (14)

itzg avatar itzg commented on August 16, 2024 1

@bingobob with a compose file you'll set

stdin_open: true
tty: true

on the service definition, described here. With that you can docker attach.

from docker-minecraft-bedrock-server.

creol avatar creol commented on August 16, 2024 1

@creol did you try restarting the server/container to pick up the change? Otherwise I would suggest the docker attach approve above and use the op command to change it at runtime.

Apparently I am my own worst enemy!
I created one MC container my kids were playing on while I have been working on a second container, but I accidentally forgot to remap the data folder. Both containers were working off the same /data/server.properties file, so of course nothing ever worked. Once I solved that I was able to make the default-player-permission-level=operator work.
Thank you!

from docker-minecraft-bedrock-server.

mattotone avatar mattotone commented on August 16, 2024

cat server.propertise show that settings are being set

image

from docker-minecraft-bedrock-server.

bingobob avatar bingobob commented on August 16, 2024

hi - i don't quite get this...

do edit server.properties file to set things up as i want them?

Or do i set the environment variables in my docker-compose and then that in turn writes to the server.properties file when the container is restarted/ recreated.

i've got it working but confused on config ?

Tahnks for any help?

from docker-minecraft-bedrock-server.

mattotone avatar mattotone commented on August 16, 2024

I never managed to get the full config to work, I set the environment variables in docker and it wrote them to the config files.
Cat server.properties shows them being written but the server appears to ignore them. maybe a bug in the game?

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on August 16, 2024

Since the Bedrock server is still beta this does seem to be one of the glitches due to that. Basically, it acts like most of the properties are only consulted on very first world creation even though the server will echo the modified properties on every startup. Gamemode was the property that most annoyed me.

If you make sure to include -i -t in the docker run, then you can always docker attach to the running server and use one of the commands to change the server behavior at any time.

from docker-minecraft-bedrock-server.

bingobob avatar bingobob commented on August 16, 2024

thanks for this, I'm running from a docker-compose file. Any tips to attach to the instance?

from docker-minecraft-bedrock-server.

creol avatar creol commented on August 16, 2024

How do I add opperators? I changed the permission.json but cant figure out how to apply the change. I tried permissions reload and it does not accept that command in bedrock.

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on August 16, 2024

@creol did you try restarting the server/container to pick up the change? Otherwise I would suggest the docker attach approve above and use the op command to change it at runtime.

from docker-minecraft-bedrock-server.

no-response avatar no-response commented on August 16, 2024

This issue has been automatically closed because there has been no response after requesting feedback. Please feel free to re-open this issue if the scenario still exists and provide a comment with more information.

from docker-minecraft-bedrock-server.

bendinwire avatar bendinwire commented on August 16, 2024

I have this exact same issue that @mattotone had above. Changes to the yml file alter the server.properties file and yet only one or two of them ever 'change'. Meaning I can change the MOTD, but the server name won't change.

My yml file:

version: "3"

services:
  mc:
    image: itzg/minecraft-server
    ports:
      - 25565:25565
    environment:
      EULA: "TRUE"
      OVERRIDE_SERVER_PROPERTIES: "true"
      MOTD: "Chaos Vibes Only"
      SERVER_NAME: "den"
      SEED: "-7783854906403730143"
    restart: unless-stopped
    volumes:
      - ./minecraft-data:/data

Produces server.properties file

$ cat server.properties | grep name
level-name=world
server-name=den

Bringing up the server with docker-compose it shows the Minecraft's servers name as Minecraft Server

I'm really stumped as to why it's not taking the setting (yet the MOTD) was updated for some reason). I thought that OVERRIDE_SERVER_PROPERTIES: "true" would fix it but it didn't.

Any suggestions?

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on August 16, 2024

@bendinwire so the server.properties entry

server-name=den

reflects the environment variable setting of SERVER_NAME: "den", right? If so, then this is an issue separate from the image startup scripts.

from docker-minecraft-bedrock-server.

bendinwire avatar bendinwire commented on August 16, 2024

I agree with you that the yml seems to be producing the correct correlated file in server.properties, however when you view the server from a Minecraft client the name of the server still reads "Minecraft Server".

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on August 16, 2024

It sounds like an issue to report with Mojang.

from docker-minecraft-bedrock-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.