resolve

public static File resolve(String worldName)

Returns the live data folder for a world, preferring the modern path when both layouts have world metadata. Returns the legacy path when neither has data so callers writing fresh world folders keep their existing destination on Spigot / pre-26.1 Paper / first-time creation.