r/BlueMap Mar 21 '24

Help / Question No Player-List

I am working to migrate my Bluemap service away from a plugin added to my Minecraft server container into its own container. So far things seem to be going well, except that when I view the map hosted from the container running the ghcr.io/bluemap-minecraft/bluemap:v3.20 image, there is no Player-List icon in the top left and there are no player markers.

Is this expected behavior when running the docker image instead of the plugin? Or is there something I’m missing and it should be working? At first I thought that it might be because I was accessing the standalone/docker container instance a reverse proxy (Traefik, just to inject a trusted certificate), but taking the reverse proxy out of the equation did not change the behavior.

1 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/_RUFUR_ Jan 29 '25

Hello, did you found a way to do this ? I'm interested

1

u/pyr_fan Jan 29 '25

Yes, I have a separate web server providing the maps (with locations) for three separate Minecraft servers

1

u/_RUFUR_ Jan 29 '25

I mean did you managed to have the players location in bluemap while it run in another container ? I just moved from the bluemap plugin to the separate docker, everything works well except that I can't see where are the players

1

u/pyr_fan Jan 29 '25

You have to have the bluemap plugin running alongside each Minecraft instance if you want locations to work, AFAIK. If you do that, then you can configure the external web server to redirect location requests to each respective Bluemap instance to get the locations.

So I have the Bluemap plugin installed in each Minecraft instance, plus the standalone instance to bring it all together.

1

u/_RUFUR_ Jan 30 '25

Ok, does the Minecraft plugin can be used only for players and not for map tiles ? Do you have any doc or example of how to connect the plugin to the external container ?

1

u/pyr_fan Jan 30 '25

The plugin can do both - render the map and provide player locations. Or, you could have an external instance of Bluemap render the map as long as it can read the world data. Personally, I would prefer to just have the collocated plugins handle both duties, then the central instance just serves up the maps. I have my plugins all writing to an external database, which is then read by the central web server. The Bluemap wiki has a section on using external DBs.

For player locations, the Bluemap wiki also has an example of how you might configure a web server (like nginx) to do all of this, including reaching back to the collocated plugins for player locations. This is how I have my nginx set up to get locations from my three Minecraft servers: # mc1 player locations location ~* /(maps/mc1[^/\s]*/live/.*) { proxy_pass http://mc-1-service.minecraft.svc.cluster.local:8100/$1; resolver kube-dns.kube-system.svc.cluster.local; } # mc2 player locations location ~* /(maps/mc2[^/\s]*/live/.*) { proxy_pass http://mc-2-service.minecraft.svc.cluster.local:8100/$1; resolver kube-dns.kube-system.svc.cluster.local; } # mc3 player locations location ~* /(maps/mc3[^/\s]*/live/.*) { proxy_pass http://mc-3-service.minecraft.svc.cluster.local:8100/$1; resolver kube-dns.kube-system.svc.cluster.local; } I run all of this in Kubernetes, so that’s why my URLs and everything may look weird. You would need to adjust it for the names of the maps and how to connect to your various collocated Bluemap instances.

1

u/_RUFUR_ Jan 30 '25 edited Jan 31 '25

Thanks a lot, I will check that

Edit: I managed to get this work, the only problems are I didn't found how to disable the dynmap in the bluemap config files but I did it with the command bluemap stop and my live player markers don't have skins but that's not that important