itzg / docker-minecraft-bedrock-server

Containerized Minecraft Bedrock Dedicated Server with selectable version
MIT License
1.18k stars 223 forks source link

How to make someone OP using docker attach #34

Open survivalbloke opened 4 years ago

survivalbloke commented 4 years ago

Hello! Excellent work on this project. I have read that rcon-cli is not supported and your workaround was to use docker attach. I added the two lines to my compose file and I'm able to attach to the container but I can't figure out how to issue commands. In rcon-cli I would issue /op to set the operator. How can I do that using docker attach?

itzg commented 4 years ago

When you attach it won't show a command prompt, but you can start entering commands. For example I op'ed myself here and then used Ctrl-p Ctrl-q to detach:

> docker attach bds-issue34_bds_1
DEBU[0250] Forwarding signal                             signal="window changed"
DEBU[0250] Forwarding signal                             signal="window changed"
op "Itz G"
Opped: Itz G
read escape sequence
survivalbloke commented 4 years ago

OK, I will try that when I get back home and let you know how I do. Follow up question: What happens when I update my images(as I do periodically) with docker-compose pull, then recreate them with docker-compose up -d? Will that undo my OP changes?

itzg commented 4 years ago

The OP setting is additive, so it's safe to redo the docker-compose up with that.

haylinmoore commented 4 years ago

when i attach, and type op or any command nothing happens

itzg commented 4 years ago

@herohamp , can you double check you have stdin and tty enabled on the container?

haylinmoore commented 4 years ago

sorry i had not added those to the compose, it works now

Benombino commented 2 years ago

ok so coming from someone that has absolutely no idea what theyre doing with this how do i op someone

ohellnawh2466 commented 1 week ago

how do i op someone in the github