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

Random map request

Open MrQu33f opened this issue 5 years ago • 6 comments

Hello,

I've set up a few docker instances for my kids. One survival, one creative server and I'd like to set another one up with downloaded worlds but want to know if there's anyway I can cycle the worlds randomly when there's no player online. I.e they go on and there's an adventure map for them to play, or they log out and back in again and it's a minigame or puzzle game etc. It'd be a pretty cool festure, is there already a way to do this?

MrQu33f avatar Apr 30 '20 22:04 MrQu33f

That would be a really cool feature. Off hand I'm not sure how to implement that since this image doesn't intercept any of the client-server communication. I guess if it were to watch the logs and keep a running count of players it could know when to do a level name swap.

Much more thought is needed... :)

itzg avatar May 01 '20 00:05 itzg

@MrQu33f Not trying to hijack your thread but how were you able to setup multiple instances? Are they on the same docker host?

claflico avatar May 10 '20 20:05 claflico

Multiple dockers on the same host but different port numbers set on server.Properties and in the docker command

MrQu33f avatar May 10 '20 20:05 MrQu33f

Do they both show up under "Lan Games"? If I add them to the servers tab they can't be played without logging in.

claflico avatar May 10 '20 21:05 claflico

No only 19132 will. But I beluvee if you search the the threads in here someone has a solution using macvlan where they've run multiple instances on 19132 with different ips

MrQu33f avatar May 11 '20 07:05 MrQu33f

If you setup a load balancer with some sort of sticky sessions maybe you could have something like haproxy or nginx do the routing to specific instances that all differ, but appear to the client to be the same. No clear path here, just another idea.

flickerfly avatar May 30 '20 02:05 flickerfly