regenerateWorld

public final Unit regenerateWorld(Long seed, World world, World fallbackWorld)

Regenerates the world by unloading it, deleting its folder, and creating a new one with the same name.

Parameters

world

the world to regenerate

fallbackWorld

the world to teleport players to if they are in the world being regenerated