thebuildcraft / RemotePlayerWaypointsForXaero

Shows player and marker positions from Dynmap, Bluemap, Squaremap or Pl3xMap in game using Xaeros Minimap and Worldmap. Also displays AFK status in the tab list.
GNU General Public License v3.0
10 stars 3 forks source link

Support for squaremap #1

Closed MeerBiene closed 2 months ago

MeerBiene commented 3 months ago

Would be nice if this plugin could also support squaremap.

I went ahead and did some research. The endpoint is:

baseUrl + "/tiles/players.json"

and this is the response

{"max":161,"players":[{"world":"minecraft_overworld","armor":3,"name":"MeerBiene2","x":-309,"health":20,"z":67,"uuid":"a418c7dcb5e8417b9af8a6dce420a6b2","yaw":-129.89647}]}
thebuildcraft commented 3 months ago

Thank you for the research. It was actually already on my to-do list. I want to support most (if not all) of the maps from Map Index eventually. I will try to do it today.

thebuildcraft commented 3 months ago

I made some progress abstracting the Connection to be able to add more maps more easily. But... there is a problem with the Squaremap: it doesn't provide the Y coordinate. grafik So I will make a configurable default Y later and finish the Squaremap support.

thebuildcraft commented 3 months ago

Ok. I added support for it. But I marked it as pre-release / beta for now, as I could not fully test yet. I will add support for the other maps soon.

MeerBiene commented 3 months ago

thank you <3

MeerBiene commented 3 months ago

I went ahead and tested. Squaremap Connection seems to be working but the waypoints don't seem to work. I could only test with a bedrock account via geyser, maybe that is an issue. If you want hit me up on discord (MeerBiene) and we can use my server for testing

thebuildcraft commented 3 months ago

Ok, thanks for testing. I will message you later today so we can test it. ( and maybe fix it...)

thebuildcraft commented 2 months ago

I will now close this because the support has been added, and we are just waiting for Squaremap to add the y coordinates to the player updates.