Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random map request #49

Open
MrQu33f opened this issue Apr 30, 2020 · 6 comments
Open

Random map request #49

MrQu33f opened this issue Apr 30, 2020 · 6 comments

Comments

@MrQu33f
Copy link

MrQu33f commented Apr 30, 2020

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?

@itzg
Copy link
Owner

itzg commented May 1, 2020

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... :)

@claflico
Copy link

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

@MrQu33f
Copy link
Author

MrQu33f commented May 10, 2020

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

@claflico
Copy link

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

@MrQu33f
Copy link
Author

MrQu33f commented May 11, 2020

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

@flickerfly
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants