2026-02-07 20:53:17 +01:00
2026-02-07 20:53:17 +01:00
2026-02-07 20:53:17 +01:00
2026-02-07 23:14:44 +01:00

where are my friends? (wamf, for short)

have you ever wondered where your friends are? have you had this issue of not knowing the coordiante position of your friends down to the 64th bit of double precision at any given time?

no more, this fog of war! with this little program (written in C btw), you can know for certain where your friends are at any given time!

it works really quite simply.

  • first, it asks the minecraft server for the positions of every player that is currently logged on;
  • then it stores this data in a json-file that is formatted in a way that makes bluemap happy;
  • with some communication, the json-file is read and loaded to serve the player position markers to the map.

try it today!

roadmap

  • issue player position query command
  • receive data from said command
  • store data in a json-file
  • serve data to bluemap
  • profit

usage

the program can be run from output/wamf. this binary (created by the Makefile, more on that in ##contributing) attempts to connect to the port specified in the environment variable RCON_PORT_NUMBER and authenticate with the given password in RCON_PASSWORD. be sure to set these properly before using the program, otherwise it will politely remind you to do so. once that is taken care of, running the program will query all the players' positions and shoot it out in the direction of bluemap.

contributing

i chose to write this in in C, because there was no easy way to download new dependencies on the server. wanting to avoid headaches, i naturally opted for socket programming in C. as such, there aren't a lot of dependencies here, but you may use the provided nix flake to get a devshell

$ nix develop

with this, you too can contribute to this wonderful code!

be sure to check out:

additionally, i have a Makefile that can build the code and also automagically deploy it on the server. beware that you need root permissions for this.

available make jobs

  • help
  • all
  • clean
  • deploy
  • remote-build
  • remote-clean
  • remote-run
Description
regularly pings minecraft server for player positions using rcon
Readme 54 KiB
Languages
C 77.9%
Makefile 18%
Nix 4.1%