TechnicJelle / BlueMapOfflinePlayerMarkers

Minecraft Paper plugin and BlueMap addon that adds markers where players have logged off
Mozilla Public License 2.0
14 stars 8 forks source link

No playermarker is created when logging out while BlueMap is reloading #6

Closed TechnicJelle closed 1 year ago

TechnicJelle commented 3 years ago

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.

Seercat3160 commented 3 years 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.

TechnicJelle commented 1 year ago

Not necessary anymore now that it just adds markers for every logged out player when BlueMap loads, like @Seercat3160 suggested above.