Closed TechnicJelle closed 1 year ago
Maybe another solution would be to iterate through every player ever joined in blueMapAPI.onEnable and add a marker for everyone that isn't online or doesn't have a marker already. I don't know how feasible that would be though.
Not necessary anymore now that it just adds markers for every logged out player when BlueMap loads, like @Seercat3160 suggested above.
When you reload BlueMap and a player logs out during the reloading process, they don't get an offline marker.
Possible fix: in the
onLeave()
method, check if the BlueMap API is available and only then add the marker. If it's not available, add an async task that waits until the BlueMap API is back.