Only shows the currently logged in player on the map. Prevents seeing other players.
The only configuration is ip and port, which are the same as with the main projects in this repository.
The default port is 8500.
Permissions checks use a cache so permissions changes require about a minute to take effect.
privatelocation.seeallexists to bypass the private location system.
This section is only relevant for advanced usage.
/players/$mapreturns BlueMap compatible players JSON for the map with only the current player (or all with the bypass permission).
Run one PrivateLocation instance per Minecraft server, each on a different port.
In Nginx, route each map's players.json to the instance on the server that owns that map.
Replace the single-server location block with one block per server:
# Server A maps
location ~ ^/maps/(server-a-map-1|server-a-map-2)/live/players.json {
proxy_pass http://127.0.0.1:8500/players/$1;
}
# Server B maps
location ~ ^/maps/(server-b-map-1|server-b-map-2)/live/players.json {
proxy_pass http://127.0.0.1:8501/players/$1;
}See the BlueMap Integration example Nginx configuration. And add the following in your application layer next to the Integration configuration:
location ~ ^/maps/([^/]*)/live/players.json {
proxy_pass http://127.0.0.1:8500/players/$1;
}