Hey, thanks for the plugin — been using it daily on my server.
I ran into a small issue with map marker teleporting while vanished. Currently the Y coordinate is taken from the player's current position, so if you're flying above a base you stay at that altitude after teleporting — which often leaves you floating in the air or clipping into structures. And if you're below the terrain level (e.g. in a basement or on lower elevation than the destination) you can fall through the map and end up flying under the terrain.
Would you consider adding a config option to let admins choose the behavior? Something like:
"MapMarkerTeleportToGround": true/false
And then in the teleport logic:
Vector3 newpos;
if (config.MapMarkerTeleportToGround)
{
newpos = new Vector3(note.worldPosition.x, 0, note.worldPosition.z);
newpos.y = TerrainMeta.HeightMap.GetHeight(newpos);
}
else
{
newpos = new Vector3(note.worldPosition.x, player.transform.position.y, note.worldPosition.z);
}
This way ground-level is the safe default, but admins who prefer keeping their altitude can disable it. Both behaviors have valid use cases depending on workflow.