Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Auth/BlueMap/PrivateLocation

Only shows the currently logged in player on the map. Prevents seeing other players.

Configuration

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

Permissions checks use a cache so permissions changes require about a minute to take effect.

  • privatelocation.seeall exists to bypass the private location system.

Endpoints

This section is only relevant for advanced usage.

  • /players/$map returns BlueMap compatible players JSON for the map with only the current player (or all with the bypass permission).

Multi-server setup

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;
  }

Nginx configuration

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;
  }